/* ===== Blog article (single.php v2) ===================================
   Tokens follow the site: system-ui, thin display headings (200),
   black header, blue accent #2AA6DB, light grey panels #F4F4F4.      */

.fj-article {
    --ink: #1d1d1f;
    --muted: #6b6b70;
    --line: rgba(0, 0, 0, 0.12);
    --blue: #2AA6DB;
    --panel: #F4F4F4;
    --measure: 720px;
    color: var(--ink);
}

/* ---- Hero (light; the fixed header gets a solid black strip) ---- */
.fj-article::before {
    content: "";
    display: block;
    height: 104px;
    background: #000;
}
.fj-hero {
    background: #fff;
    color: var(--ink);
    padding: 64px 0 48px;
}
.fj-hero__inner {
    max-width: 1140px;
}
.fj-crumbs {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}
.fj-crumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.fj-crumbs a:hover {
    color: var(--ink);
    border-bottom-color: var(--line);
}
.fj-hero__title {
    font-size: clamp(34px, 4.6vw, 62px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 18ch;
    margin: 0 0 24px;
    color: #000;
}
.fj-hero__lead {
    font-size: 19px;
    line-height: 1.55;
    color: #444;
    max-width: 640px;
    margin: 0 0 28px;
}
.fj-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}
.fj-hero__meta span:first-child {
    color: var(--ink);
}

/* ---- Hero image ---- */
.fj-media {
    max-width: 1140px;
    margin-bottom: 72px;
}
.fj-media__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    max-height: 560px;
    object-fit: cover;
}

/* ---- Body: rail + content ---- */
.fj-body {
    max-width: 1140px;
    margin-bottom: 96px;
}
.fj-body__grid {
    display: grid;
    grid-template-columns: minmax(0, var(--measure));
    justify-content: center;
    gap: 40px;
}
@media (min-width: 1200px) {
    .fj-body__grid {
        grid-template-columns: 250px minmax(0, var(--measure));
        column-gap: 80px;
        justify-content: center;
    }
}
.fj-rail {
    font-size: 14px;
}
@media (min-width: 1200px) {
    .fj-rail {
        position: sticky;
        top: 124px;
        align-self: start;
    }
}

/* Table of contents */
.fj-toc {
    border-top: 2px solid #000;
    padding-top: 14px;
    margin-bottom: 32px;
}
.fj-toc summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fj-toc summary::-webkit-details-marker { display: none; }
.fj-toc summary::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.fj-toc[open] summary::after { transform: rotate(-135deg); }
@media (min-width: 1200px) {
    .fj-toc summary { pointer-events: none; }
    .fj-toc summary::after { display: none; }
}
.fj-toc ol {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.fj-toc li + li {
    margin-top: 2px;
}
.fj-toc a {
    display: block;
    padding: 7px 0 7px 12px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
}
.fj-toc a:hover,
.fj-toc a:focus-visible {
    color: var(--ink);
    border-left-color: var(--blue);
}

/* Share */
.fj-share {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.fj-share__label {
    color: var(--muted);
    margin-right: 6px;
}
.fj-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, color 0.15s;
}
.fj-share__btn:hover,
.fj-share__btn:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
}
.fj-share__toast {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap;
}

/* ---- Article typography (overrides .text-blog defaults) ---- */
.fj-content {
    font-size: 18px;
    line-height: 1.65;
}
.fj-content > :first-child { margin-top: 0; }
.fj-content p,
.fj-content li {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
}
.fj-content p { margin: 0 0 1.25em; }
.fj-content > p:first-child em {
    font-style: normal;
    color: var(--muted);
}
.fj-content h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 2.2em 0 0.7em;
    scroll-margin-top: 120px;
}
.fj-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.8em 0 0.6em;
}
.fj-content ul,
.fj-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.3em;
}
.fj-content li + li { margin-top: 0.4em; }
.fj-content a:not(.fj-btn) {
    color: var(--blue);
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.fj-content a:not(.fj-btn):hover { color: #1b85b2; }
.fj-content strong { font-weight: 600; color: #000; }
.fj-content figure.wp-block-image,
.fj-content .wp-block-image {
    margin: 2em 0;
}
.fj-content .wp-block-image img,
.fj-content img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: unset;
}
.fj-content figcaption {
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 10px;
    text-align: left;
}
.fj-content blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--blue);
    font-size: 20px;
    color: #000;
}

/* ---- CTA band ---- */
.fj-cta {
    background: #000;
    color: #fff;
    padding: 72px 0;
}
.fj-cta__inner {
    max-width: 1140px;
    display: grid;
    gap: 36px;
    align-items: center;
}
@media (min-width: 992px) {
    .fj-cta__inner { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.fj-cta h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 200;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #fff;
}
.fj-cta p {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 520px;
}
.fj-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}
.fj-btn {
    display: inline-block;
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.8em), calc(100% - 0.8em) 100%, 0 100%, 0 0.8em);
    transition: background-color 0.2s, color 0.2s;
}
.fj-btn--light { background: #fff; color: #000; }
.fj-btn--light:hover,
.fj-btn--light:focus-visible { background: var(--blue); color: #fff; }
.fj-btn--ghost {
    background: transparent;
    color: #fff;
    box-shadow: 0 0 0 1px inset rgba(255, 255, 255, 0.6);
}
.fj-btn--ghost:hover,
.fj-btn--ghost:focus-visible { background: #fff; color: #000; }
.fj-cta__phone {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
}
.fj-cta__phone:hover { color: #fff; text-decoration: underline; }

/* ---- Related posts ---- */
.fj-related {
    max-width: 1140px;
    padding-top: 80px;
    padding-bottom: 40px;
}
.fj-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.fj-related__head h2 {
    font-size: 32px;
    font-weight: 200;
    margin: 0;
}
.fj-related__head a {
    color: var(--ink);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fj-related__grid {
    display: grid;
    gap: 28px;
}
@media (min-width: 768px) {
    .fj-related__grid { grid-template-columns: repeat(3, 1fr); }
}
.fj-card {
    display: block;
    color: var(--ink);
    text-decoration: none;
}
.fj-card__media {
    aspect-ratio: 16 / 10;
    background: var(--panel);
    overflow: hidden;
    margin-bottom: 14px;
}
.fj-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.fj-card:hover .fj-card__media img { transform: scale(1.03); }
.fj-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
}
.fj-card:hover h3 { color: var(--blue); }
.fj-card time {
    font-size: 13px;
    color: var(--muted);
}

/* ---- Small screens ---- */
@media (max-width: 991px) {
    .fj-article::before { height: 104px; }
    .fj-hero { padding: 36px 0 32px; }
    .fj-media { margin-bottom: 44px; }
    .fj-media__img { aspect-ratio: 16 / 10; }
    .fj-body { margin-bottom: 64px; }
    .fj-content, .fj-content p, .fj-content li { font-size: 17px; }
    .fj-content h2 { font-size: 26px; }
    .fj-content h3 { font-size: 20px; }
    .fj-cta { padding: 56px 0; }
    .fj-related { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .fj-card__media img, .fj-toc summary::after, .fj-btn, .fj-share__btn { transition: none; }
}
