/**
 * Blog Single V2 - Lean single-column reading layout.
 * Loaded only when the blog v2 flag is active (pca-blog-v2-loader.php).
 * Typography: Plus Jakarta Sans everywhere (single-font pilot); the family
 * is already shipped site-wide for headings, so no new font files load.
 */

.pca-postv2 {
    --pv2-ink: #16242c;
    --pv2-muted: #5d6b72;
    --pv2-line: #e6e2d8;
    --pv2-accent: #FF9900;   /* brand CTA orange */
    --pv2-accent-ink: #c97400;
    --pv2-paper: #ffffff;
    --pv2-panel: #f7f6f2;
    --pv2-col: 700px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--pv2-ink);
    background: var(--pv2-paper);
    padding-bottom: 96px;
}

.pca-postv2 .blog-center-column { max-width: var(--pv2-col); }

/* ---- Reading progress ---- */
.pca-postv2-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1090;
    pointer-events: none;
    background: transparent;
}
.pca-postv2-progress span {
    display: block;
    height: 100%;
    background: var(--pv2-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
    .pca-postv2-progress span { transition: transform 80ms linear; }
}

/* ---- Hero ---- */
.pca-postv2__hero {
    max-width: var(--pv2-col);
    margin: 0 auto;
    padding: 40px 20px 8px;
}
.pca-postv2__kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv2-accent);
    text-decoration: none;
    margin-bottom: 10px;
}
.pca-postv2__kicker:hover { color: var(--pv2-accent-ink); }
.pca-postv2__title {
    font-size: clamp(30px, 5.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 800;
    margin: 0 0 14px;
    text-wrap: balance;
}
.pca-postv2__dek {
    font-size: 19px;
    line-height: 1.55;
    color: var(--pv2-muted);
    margin: 0 0 18px;
    max-width: 60ch;
}
.pca-postv2__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--pv2-muted);
    margin-bottom: 14px;
}
.pca-postv2__byline { font-weight: 600; color: var(--pv2-ink); }
.pca-postv2__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--pv2-line);
    display: inline-block;
}
.pca-postv2__share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--pv2-line);
}
.pca-postv2__share-btn {
    font: 600 13px/1 'Plus Jakarta Sans', sans-serif;
    color: var(--pv2-ink);
    background: var(--pv2-panel);
    border: 1px solid var(--pv2-line);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    cursor: pointer;
}
.pca-postv2__share-btn:hover { border-color: var(--pv2-accent); color: var(--pv2-accent-ink); }
.pca-postv2__share-btn:focus-visible { outline: 2px solid var(--pv2-accent); outline-offset: 2px; }

/* ---- Featured image ---- */
.pca-postv2__figure {
    max-width: 940px;
    margin: 28px auto 8px;
    padding: 0 20px;
}
.pca-postv2__featured,
.pca-postv2__figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ---- Contents (details/summary) ---- */
.pca-postv2__toc {
    max-width: var(--pv2-col);
    margin: 24px auto 8px;
    padding: 0 20px;
}
.pca-postv2__toc summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.pca-postv2__toc summary::-webkit-details-marker { display: none; }
.pca-postv2__toc summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid var(--pv2-accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 120ms ease;
}
.pca-postv2__toc[open] summary::before { transform: rotate(90deg); }
.pca-postv2__toc-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pv2-muted);
}
.pca-postv2__toc-list {
    margin: 12px 0 0;
    padding: 14px 18px;
    background: var(--pv2-panel);
    border: 1px solid var(--pv2-line);
    border-radius: 8px;
    columns: 2;
    column-gap: 32px;
    list-style: none;
    counter-reset: toc;
}
.pca-postv2__toc-list > li {
    break-inside: avoid;
    padding: 4px 0;
    font-size: 14.5px;
}
.pca-postv2__toc-list a {
    color: var(--pv2-ink);
    text-decoration: none;
}
.pca-postv2__toc-list a:hover { color: var(--pv2-accent-ink); text-decoration: underline; }
.pca-postv2__toc-sub {
    list-style: none;
    padding-left: 14px;
    margin: 2px 0 0;
}
.pca-postv2__toc-sub li { font-size: 13.5px; padding: 2px 0; }
.pca-postv2__toc-sub a { color: var(--pv2-muted); }
@media (max-width: 640px) {
    .pca-postv2__toc-list { columns: 1; }
}

/* ---- Article column ---- */
.pca-postv2__content {
    max-width: var(--pv2-col);
    margin: 24px auto 0;
    padding: 0 20px;
    font-size: 17.5px;
    line-height: 1.75;
}
.pca-postv2__content p { margin: 0 0 1.35em; }
.pca-postv2__content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 2em 0 0.6em;
    scroll-margin-top: 90px;
}
.pca-postv2__content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
    scroll-margin-top: 90px;
}
.pca-postv2__content ul,
.pca-postv2__content ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.pca-postv2__content li { margin-bottom: 0.45em; }
.pca-postv2__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.pca-postv2__content figure { margin: 1.8em 0; }
.pca-postv2__content figcaption {
    font-size: 13.5px;
    color: var(--pv2-muted);
    margin-top: 8px;
}

.pca-postv2__content blockquote {
    border-left: 3px solid var(--pv2-accent);
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 1.2em;
    color: var(--pv2-muted);
}
.pca-postv2__content .wp-block-button__link,
.pca-postv2__content .wp-block-button a {
    background: var(--pv2-accent);
    color: #fff;
    border-radius: 8px;
    padding: 13px 22px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
.pca-postv2__content hr {
    border: 0;
    border-top: 1px solid var(--pv2-line);
    margin: 2.4em 0;
}

/* ---- Author + cards ---- */
.pca-postv2__after {
    max-width: var(--pv2-col);
    margin: 48px auto 0;
    padding: 0 20px;
}
.pca-postv2__author {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--pv2-line);
    border-bottom: 1px solid var(--pv2-line);
}
.pca-postv2__avatar { border-radius: 50%; flex-shrink: 0; }
.pca-postv2__author-name { font-weight: 700; margin: 0 0 4px; font-size: 16px; }
.pca-postv2__author-bio { margin: 0; font-size: 14.5px; color: var(--pv2-muted); line-height: 1.55; }

.pca-postv2__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
@media (max-width: 640px) { .pca-postv2__cards { grid-template-columns: 1fr; } }
.pca-postv2__card {
    border: 1px solid var(--pv2-line);
    border-radius: 10px;
    padding: 22px;
    background: var(--pv2-panel);
}
.pca-postv2__card--book { background: #fff6e8; border-color: #ffdfad; }
.pca-postv2__card-title { font-weight: 800; font-size: 17px; margin: 0 0 6px; }
.pca-postv2__card-text { font-size: 14.5px; color: var(--pv2-muted); margin: 0 0 14px; line-height: 1.55; }
.pca-postv2__card-btn,
.pca-postv2__card-btn:link,
.pca-postv2__card-btn:visited {
    display: inline-block;
    background: var(--pv2-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
}
.pca-postv2__card-btn:hover { background: #e08600; color: #fff !important; }
.pca-postv2__card-btn--ghost,
.pca-postv2__card-btn--ghost:link,
.pca-postv2__card-btn--ghost:visited {
    background: transparent;
    color: var(--pv2-accent-ink) !important;
    border: 1.5px solid var(--pv2-accent);
}
.pca-postv2__card-btn--ghost:hover { background: var(--pv2-accent); color: #fff !important; }

/* ---- Translations ---- */
.pca-postv2__translations {
    max-width: var(--pv2-col);
    margin: 32px auto 0;
    padding: 14px 20px;
}
.pca-postv2__translations p {
    margin: 0;
    font-size: 14px;
    color: var(--pv2-muted);
    border-top: 1px solid var(--pv2-line);
    padding-top: 14px;
}
.pca-postv2__translations a { color: var(--pv2-accent-ink); font-weight: 600; text-decoration: none; }
.pca-postv2__translations a:hover { text-decoration: underline; }
.pca-postv2__translations span { color: var(--pv2-line); margin: 0 6px; }

/* ---- Related ---- */
.pca-postv2__related {
    max-width: 940px;
    margin: 48px auto 0;
    padding: 0 20px;
}
.pca-postv2__related h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 18px;
}
.pca-postv2__related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .pca-postv2__related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pca-postv2__related-grid { grid-template-columns: 1fr; } }
.pca-postv2__related-card {
    text-decoration: none;
    color: var(--pv2-ink);
    display: block;
}
.pca-postv2__related-thumb {
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    overflow: hidden;
    background: var(--pv2-panel);
    margin-bottom: 10px;
}
.pca-postv2__related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pca-postv2__related-thumb--fallback {
    background: linear-gradient(135deg, #f2a33c 0%, #FF9900 55%, #ffc46b 100%);
}
.pca-postv2__related-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
}
.pca-postv2__related-card:hover h3 { color: var(--pv2-accent-ink); }
.pca-postv2__related-date { font-size: 13px; color: var(--pv2-muted); }
.pca-postv2__related-all { margin-top: 18px; }
.pca-postv2__related-all a { color: var(--pv2-accent-ink); font-weight: 700; }

/* ---- Sticky booking bar ---- */
.pca-postv2__bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
    background: rgba(14, 36, 44, 0.97);
    color: #fff;
    transform: translateY(110%);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: no-preference) {
    .pca-postv2__bar { transition: transform 220ms ease; }
}
.pca-postv2__bar.is-visible { transform: translateY(0); }
.pca-postv2__bar-text { font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .pca-postv2__bar-text { display: none; } }
.pca-postv2__bar-btn,
.pca-postv2__bar-btn:link,
.pca-postv2__bar-btn:visited {
    background: var(--pv2-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.pca-postv2__bar-btn:hover { background: #e08600; color: #fff !important; }

/* ---- FAQ accordion (reuses v1 markup classes) ---- */
.pca-postv2 .blog-faq-accordion { margin-top: 2em; }


/* ---- Breadcrumbs (markup from pca_blog_breadcrumbs) ---- */
.pca-postv2 .pca-breadcrumbs {
    max-width: var(--pv2-col);
    margin: 18px auto 0;
    padding: 0 20px;
}
.pca-postv2 .pca-breadcrumbs .container { padding: 0; max-width: none; }
.pca-postv2 .pca-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--pv2-muted);
}
.pca-postv2 .pca-breadcrumbs li { display: flex; align-items: center; }
.pca-postv2 .pca-breadcrumbs li + li::before {
    content: "/";
    margin: 0 8px;
    color: var(--pv2-line);
}
.pca-postv2 .pca-breadcrumbs a {
    color: var(--pv2-muted);
    text-decoration: none;
}
.pca-postv2 .pca-breadcrumbs a:hover { color: var(--pv2-ink); text-decoration: underline; }
