/* =====================================================================
   SUBPAGES — shared hero + single/about/contact/faq
   ===================================================================== */

/* Shared page hero — large image with overlay title */
.page-hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    height: clamp(320px, 46vw, 520px);
    background: #111;
}
.page-hero picture,
.page-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.page-hero__overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    padding: 40px 24px;
}
.page-hero__title {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* =====================================================================
   SINGLE POST v2 — Editorial, title-above-image layout
   ===================================================================== */
.single-v2 { padding: 0 0 96px; background: var(--color-bg); }

/* Thin horizontal progress bar fixed at top of viewport */
.read-progress-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 101;
    pointer-events: none;
}
.read-progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width .1s linear;
}

/* Editorial header (title + dek + byline, no image) */
.single-v2__head {
    padding: 48px 0 36px;
    background: var(--color-bg);
    text-align: center;
}
/* Breadcrumb trail (top of article) */
.single-v2__breadcrumb {
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.single-v2__breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.single-v2__breadcrumb a:hover { color: var(--color-accent); }
.single-v2__breadcrumb .bc-sep { opacity: .5; }
.single-v2__breadcrumb .bc-current { color: var(--color-text); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.single-v2__chip {
    display: inline-block;
    background: transparent;
    color: var(--color-accent);
    font-size: 11px;
    letter-spacing: .26em;
    font-weight: 700;
    padding: 0 0 4px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 24px;
}
.single-v2__title {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: clamp(34px, 4.8vw, 62px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin: 0 auto 20px;
    max-width: 900px;
}
.single-v2__dek {
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.5;
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto 32px;
    font-weight: 400;
}
.single-v2__byline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}
.byline-avatar {
    width: 44px; height: 44px;
    border-radius: 9999px;
    object-fit: cover;
    background: var(--color-bg-alt, #F8FAFC);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-accent);
    font-weight: 700;
}
.byline-avatar--empty { background: var(--color-bg-alt); }
.byline-body { line-height: 1.2; }
.byline-prefix { color: var(--color-text-muted); font-weight: 400; }
.byline-name { font-size: 15px; font-weight: 600; color: var(--color-text); display: block; }
.byline-name a { color: inherit; text-decoration: none; }
.byline-name a:hover { color: var(--color-accent); }
.byline-meta { font-size: 13px; color: var(--color-text-muted); display: block; margin-top: 2px; }
.byline-dot { margin: 0 4px; }

/* Hero image now below header, inside container, with rounded-corner option */
.single-v2__hero {
    margin: 0 0 56px;
    padding: 0;
}
.single-v2__hero .container { padding: 0 24px; }
.single-v2__hero picture {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.single-v2__hero img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.single-v2__travel-meta {
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}
.single-v2__travel-meta .container {
    display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
    font-size: 13px;
}
.single-v2__travel-meta .t-meta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--color-text-muted);
}
.single-v2__travel-meta .t-meta strong { color: var(--color-text); font-weight: 600; }
.single-v2__travel-meta svg { flex-shrink: 0; color: var(--color-accent); }

.single-v2__body { padding: 0 0 0; }
.single-v2__grid {
    display: grid;
    grid-template-columns: minmax(0, 900px) 300px;
    gap: 80px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}
.single-v2__grid--no-rail { grid-template-columns: minmax(0, 900px); }
.single-v2__main { max-width: 900px; min-width: 0; }

/* ------------------------------------------------------------------
   RIGHT sticky rail — TOC + share + back-to-top (editorial style)
   ------------------------------------------------------------------ */
.single-v2__rail {
    position: sticky;
    top: 120px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0;
    font-size: 14px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.single-v2__rail::-webkit-scrollbar { width: 6px; }
.single-v2__rail::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 6px; }
.single-v2__rail::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* Offset H2 anchor targets so clicking a TOC item doesn't hide the heading behind the sticky header. */
.prose-v2 h2 { scroll-margin-top: 110px; }
.prose-v2 h3 { scroll-margin-top: 110px; }

/* ======================================================================
   DARK MODE — overrides via CSS custom properties.
   Triggered by `html[data-theme="dark"]` (set by header theme-toggle JS).
   ====================================================================== */
html[data-theme="dark"] {
    --color-bg:          #0E1117;
    --color-bg-alt:      #161B22;
    --color-surface:     #1B2128;
    --color-text:        #E6EDF3;
    --color-text-muted:  #8B949E;
    --color-border:      #2D333B;
    --color-primary:     #58A6FF;
    /* keep --color-accent (orange) so brand accent stays consistent */
}
html[data-theme="dark"] body { background: var(--color-bg); color: var(--color-text); }
html[data-theme="dark"] .site-header {
    background: rgba(14, 17, 23, 0.88);
    border-bottom-color: var(--color-border);
}
html[data-theme="dark"] .site-header[data-state="scrolled"] {
    background: rgba(14, 17, 23, 0.94);
}
html[data-theme="dark"] .post-card { background: #0A0D12; }
html[data-theme="dark"] .tips-block { background: var(--color-bg-alt); }
html[data-theme="dark"] .about-essentials,
html[data-theme="dark"] .contact-guides,
html[data-theme="dark"] .single-v2__author,
html[data-theme="dark"] .comment-form { background: var(--color-bg-alt); }
html[data-theme="dark"] .tip-card__image { background: var(--color-bg-alt); }
html[data-theme="dark"] .rail-chip { background: var(--color-bg-alt); color: var(--color-text); }
html[data-theme="dark"] .header-btn:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .hero-slider-arrow { background: var(--color-bg-alt); color: var(--color-text); }
html[data-theme="dark"] .hero-slider-arrow:hover { background: var(--color-accent); color: #fff; }
html[data-theme="dark"] .header-search-overlay { background: var(--color-bg); border-bottom-color: var(--color-border); }
html[data-theme="dark"] .header-search-form input,
html[data-theme="dark"] .cf-form--travel input,
html[data-theme="dark"] .cf-form--travel textarea,
html[data-theme="dark"] .comment-form input,
html[data-theme="dark"] .comment-form textarea {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}
html[data-theme="dark"] .comment-form { background: var(--color-bg-alt); }
html[data-theme="dark"] .comment-form input,
html[data-theme="dark"] .comment-form textarea { background: var(--color-bg); }
html[data-theme="dark"] .footer-newsletter-v2 .email-input { background: var(--color-bg-alt); color: var(--color-text); border-color: var(--color-border); }
html[data-theme="dark"] .faq-widget--newsletter input { background: var(--color-bg-alt); color: var(--color-text); border-color: var(--color-border); }
html[data-theme="dark"] .footer-wave { opacity: .6; }
html[data-theme="dark"] .rail-toc__list a:hover { background: rgba(247,127,0,0.08); }
html[data-theme="dark"] .rail-toc__list a.is-active { background: rgba(247,127,0,0.16); }
html[data-theme="dark"] .tag-pill:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
html[data-theme="dark"] .post-card__placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.05) 0, transparent 40%),
        linear-gradient(135deg, #1B2128 0%, #0A0D12 100%);
}
html[data-theme="dark"] .site-footer-v2 { background: var(--color-bg); }
html[data-theme="dark"] .site-header[data-state="scrolled"] {
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

/* Submit buttons — light bg in dark mode means white-on-white; invert */
html[data-theme="dark"] .comment-form button,
html[data-theme="dark"] .contact-form__submit,
html[data-theme="dark"] .cf-form--travel .cf-btn,
html[data-theme="dark"] .footer-newsletter-v2 .submit-btn,
html[data-theme="dark"] .tip-card__cta,
html[data-theme="dark"] .faq-widget--newsletter button {
    background: var(--color-accent);
    color: #fff;
}
html[data-theme="dark"] .comment-form button:hover,
html[data-theme="dark"] .contact-form__submit:hover,
html[data-theme="dark"] .cf-form--travel .cf-btn:hover,
html[data-theme="dark"] .footer-newsletter-v2 .submit-btn:hover,
html[data-theme="dark"] .tip-card__cta:hover,
html[data-theme="dark"] .faq-widget--newsletter button:hover {
    background: var(--color-primary);
    color: #fff;
}

/* TOC active state — subtler on dark (was too orange/brick) */
html[data-theme="dark"] .rail-toc__list a.is-active {
    background: rgba(247, 127, 0, 0.12);
    color: #FDBA74;  /* softer orange for dark bg */
}
html[data-theme="dark"] .rail-toc__list a.is-active .toc-bullet {
    background: #FDBA74;
    border-color: #FDBA74;
    box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.14);
}
html[data-theme="dark"] .rail-toc__label,
html[data-theme="dark"] .rail-toc__icon { color: #FDBA74; }

/* FAQ accordion in dark */
html[data-theme="dark"] .prose-v2 .faq-q > summary::after { color: #FDBA74; }
html[data-theme="dark"] .prose-v2 .faq-q > summary:hover { color: #FDBA74; }
html[data-theme="dark"] .prose-v2 h2::before { background: #FDBA74; }

/* Legacy back-to-top button (from theme.js) — style for dark */
html[data-theme="dark"] .back-to-top {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* Section eyebrows, byline in dark */
html[data-theme="dark"] .section-eyebrow { color: #FDBA74; }
html[data-theme="dark"] .single-v2__chip { color: #FDBA74; border-bottom-color: #FDBA74; }
html[data-theme="dark"] .prose-v2 a { color: #FDBA74; }
html[data-theme="dark"] .prose-v2 a:hover { color: var(--color-primary); }
html[data-theme="dark"] .prose-v2 ul li::before,
html[data-theme="dark"] .prose-v2 ol li::before { background: #FDBA74; color: #FDBA74; }

/* Form placeholders visible */
html[data-theme="dark"] ::placeholder { color: var(--color-text-muted); opacity: 0.7; }

/* Tags + category chips in dark */
html[data-theme="dark"] .tag-pill { background: var(--color-bg-alt); border-color: var(--color-border); color: var(--color-text-muted); }
html[data-theme="dark"] .tag-pill:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Hero slider + hero page overlay gradients — slightly darker on dark */
html[data-theme="dark"] .hero-slide__overlay,
html[data-theme="dark"] .page-hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%); }

/* Section label */
.rail-section-label {
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    display: block;
    margin: 0;
}

/* Auto TOC — iconic, colored bullets, prominent active state */
.rail-toc { display: flex; flex-direction: column; gap: 14px; }
.rail-toc__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);  /* logo orange */
}
.rail-toc__icon {
    color: var(--color-accent);
    flex-shrink: 0;
}
.rail-toc__list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.rail-toc__list li { position: relative; }
.rail-toc__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.35;
    transition: color .15s, background .15s, padding-left .2s;
    border-radius: 4px;
}
.rail-toc__list .toc-bullet {
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 9999px;
    background: transparent;
    border: 2px solid var(--color-border);
    transition: all .2s ease;
    display: inline-block;
}
.rail-toc__list .toc-text {
    flex: 1; min-width: 0;
}
.rail-toc__list a:hover {
    color: var(--color-text);
    background: rgba(247, 127, 0, 0.04);
}
.rail-toc__list a:hover .toc-bullet {
    border-color: var(--color-accent);
}
.rail-toc__list a.is-active {
    color: var(--color-accent);
    font-weight: 600;
    padding-left: 12px;
    background: rgba(247, 127, 0, 0.08);
}
.rail-toc__list a.is-active .toc-bullet {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(247, 127, 0, 0.15);
}
.rail-toc__list:empty { display: none; }
.rail-toc:has(.rail-toc__list:empty) { display: none; }

/* Divider between TOC and shares */
.rail-divider {
    display: block;
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

/* Share chips stack — horizontal row now */
.rail-shares {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rail-chip {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 0;
    transition: all .15s;
    position: relative;
}
.rail-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.rail-chip svg { display: block; }

/* Brand hover states */
.rail-chip--x:hover        { background: #000; color: #fff; border-color: #000; }
.rail-chip--fb:hover       { background: #1877F2; color: #fff; border-color: #1877F2; }
.rail-chip--pin:hover      { background: #E60023; color: #fff; border-color: #E60023; }
.rail-chip--wa:hover       { background: #25D366; color: #fff; border-color: #25D366; }
.rail-chip--copy:hover     { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.rail-chip--copy.is-copied { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.rail-chip--comment        { background: transparent; color: var(--color-text); }
.rail-chip--comment:hover  { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.rail-chip--top            { background: transparent; color: var(--color-text); }
.rail-chip--top:hover      { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* Comment count bubble */
.rail-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    background: #fff;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* Copy feedback pulse */
.rail-chip--copy.is-copied::after {
    content: 'Copied';
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text);
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    border-radius: 4px;
    white-space: nowrap;
}

/* Prose (content) — editorial rhythm, generous whitespace */
.prose-v2 {
    font-size: 19px;
    line-height: 1.75;
    color: var(--color-text);
    font-feature-settings: "kern", "liga", "clig", "calt";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.prose-v2 p {
    margin: 0 0 1.6em;
    max-width: 70ch;
    letter-spacing: -0.003em;  /* subtle tightening for long form */
}
/* First paragraph: larger lede, drop-cap on very first letter */
.prose-v2 > p:first-child {
    font-size: 22px;
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: 1.8em;
    font-weight: 400;
}
.prose-v2 > p:first-child::first-letter {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: 4em;
    float: left;
    line-height: 0.85;
    margin: 0.05em 0.12em 0 0;
    color: var(--color-accent);
    font-weight: 700;
}
/* Paragraph after H2: slightly larger for entry rhythm */
.prose-v2 h2 + p {
    font-size: 20px;
    line-height: 1.65;
}
/* Text-brick breaker: every 3rd paragraph gets slightly larger top margin so
   long runs of dense prose don't feel like one wall of text. */
.prose-v2 p + p + p { margin-top: 0.3em; }

.prose-v2 h2 {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2.6em 0 .8em;
    line-height: 1.15;
    position: relative;
    padding-top: .2em;
}
.prose-v2 h2::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 18px;
}
.prose-v2 h3 {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 .6em;
    line-height: 1.2;
    color: var(--color-text);
}
.prose-v2 a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s;
}
.prose-v2 a:hover { color: var(--color-primary); }
.prose-v2 ul, .prose-v2 ol {
    margin: 0 0 1.8em 0;
    padding-left: 0;
    list-style: none;
    max-width: 72ch;
}
.prose-v2 ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: .7em;
    line-height: 1.65;
}
.prose-v2 ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.6em;
    width: 10px;
    height: 2px;
    background: var(--color-accent);
}
.prose-v2 ol { counter-reset: oli; }
.prose-v2 ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: .8em;
    line-height: 1.65;
    counter-increment: oli;
}
.prose-v2 ol li::before {
    content: counter(oli);
    position: absolute;
    left: 0; top: 0.1em;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9em;
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
}
.prose-v2 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2.6em 0;
    border-radius: 2px;
}
.prose-v2 blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 8px 0 8px 28px;
    margin: 2em 0;
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--color-text);
    max-width: 72ch;
}
.prose-v2 blockquote p { font-size: inherit; line-height: inherit; }
.prose-v2 strong { color: var(--color-text); font-weight: 700; }
.prose-v2 code {
    background: var(--color-bg-alt, #F8FAFC);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Menlo', 'Monaco', monospace;
}
.prose-v2 .post-inline-figure {
    margin: 2.4em -40px;
    max-width: none;
}
.prose-v2 .post-inline-figure picture { display: block; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.prose-v2 .post-inline-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* Markdown GFM tablo (parse_markdown → .table-wrap > table) */
.prose-v2 .table-wrap { overflow-x: auto; margin: 2em 0; max-width: 72ch; }
.prose-v2 table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
}
.prose-v2 thead { background: var(--color-bg-alt, #F8FAFC); }
.prose-v2 th,
.prose-v2 td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--color-border);
    vertical-align: top;
}
.prose-v2 th { font-weight: 700; color: var(--color-text); }
.prose-v2 tbody tr:nth-child(even) { background: var(--color-bg-alt, #F8FAFC); }



/* FAQ accordion — converts brick-like Q/A paragraphs into clean interactive items */
.prose-v2 .faq-block {
    margin: 1.6em 0 2.4em;
    max-width: 72ch;
}
.prose-v2 .faq-q {
    border-bottom: 1px solid var(--color-border);
    padding: 6px 0;
}
.prose-v2 .faq-q:first-child { border-top: 1px solid var(--color-border); }
.prose-v2 .faq-q > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 4px;
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    transition: color .15s;
}
.prose-v2 .faq-q > summary::-webkit-details-marker { display: none; }
.prose-v2 .faq-q > summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform .2s;
    flex-shrink: 0;
    line-height: 1;
    width: 22px;
    text-align: center;
}
.prose-v2 .faq-q[open] > summary::after { content: '−'; }
.prose-v2 .faq-q > summary:hover { color: var(--color-accent); }
.prose-v2 .faq-q__a {
    padding: 0 4px 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.prose-v2 .faq-q__a p { margin: 0; max-width: none; }

.single-v2__tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 40px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all .15s;
}
.tag-pill:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }

.single-v2__author {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    padding: 32px;
    background: var(--color-bg-alt, #F8FAFC);
    margin: 56px 0;
    align-items: start;
}
.single-v2__author-avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 9999px; }
.single-v2__author-role { font-size: 11px; letter-spacing: .22em; color: var(--color-accent); font-weight: 700; text-transform: uppercase; margin: 0 0 6px; }
.single-v2__author-name { font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif); font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.single-v2__author-name a { color: var(--color-text); text-decoration: none; }
.single-v2__author-bio { color: var(--color-text-muted); line-height: 1.6; margin: 0; }

.single-v2__comments { margin-top: 56px; }
.single-v2__comments-heading { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.comment-avatar { width: 48px; height: 48px; object-fit: cover; border-radius: 9999px; background: #ddd; }
.comment-avatar--empty { background: linear-gradient(135deg, #1e293b, #334155); }
.comment-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.comment-head strong { font-size: 15px; font-weight: 600; }
.comment-head time { font-size: 12px; color: var(--color-text-muted); }
.comment-body p { margin: 0; line-height: 1.6; }

.comment-form { padding: 28px; background: var(--color-bg-alt, #F8FAFC); }
.comment-form__heading { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.comment-form__row { display: flex; gap: 14px; margin-bottom: 14px; }
.comment-form__row input { flex: 1; }
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-accent); }
.comment-form textarea { margin-bottom: 18px; resize: vertical; min-height: 120px; }
.comment-form button {
    padding: 12px 28px;
    background: var(--color-text);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.comment-form button:hover { background: var(--color-accent); }

.single-v2__related { padding: 80px 0 40px; }
.post-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 1000px) {
    .single-v2__grid { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
    .single-v2__main { max-width: none; margin: 0 auto; width: 100%; max-width: 720px; }
    .single-v2__rail {
        position: static;
        flex-direction: column;
        padding: 28px 0;
        border-top: 1px solid var(--color-border);
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }
    .rail-toc { display: none; }  /* TOC on mobile is noise */
    .rail-divider { display: none; }
    .rail-shares { flex-direction: row; }
    .single-v2__author { grid-template-columns: 1fr; text-align: center; }
    .single-v2__author-avatar { margin: 0 auto; }
    .comment-form__row { flex-direction: column; }
    .post-grid--compact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .single-v2__head { padding: 40px 0 24px; }
    .single-v2__hero { margin-bottom: 32px; }
}

/* =====================================================================
   ARCHIVE v2 — shared hero for /destinations /tips /continent/ /tag/ /author/
   ===================================================================== */
.archive-v2 { padding-bottom: 96px; }

.archive-hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    height: clamp(320px, 42vw, 480px);
    background: #111;
}
.archive-hero picture,
.archive-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.archive-hero__overlay {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%);
}
.archive-hero__eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 18px;
    background: rgba(0,0,0,.35);
    padding: 6px 16px;
    backdrop-filter: blur(4px);
}
.archive-hero__title {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 18px;
    max-width: 900px;
    text-shadow: 0 4px 30px rgba(0,0,0,.4);
    color: #fff;
}
.archive-hero__dek {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 0 14px;
    color: rgba(255,255,255,.92);
}
.archive-hero__count {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
    margin: 0;
    font-weight: 600;
}

/* Author archive hero — avatar + gradient bg + social */
.author-hero {
    background: linear-gradient(135deg, #1F2937 0%, #111827 55%, #F77F00 100%);
    background-attachment: fixed;
    color: #fff;
    padding: 72px 24px 64px;
    position: relative;
    overflow: hidden;
}
.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(247,127,0,0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(14,165,233,0.15) 0%, transparent 40%);
    pointer-events: none;
}
.author-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.author-hero__avatar {
    width: 140px; height: 140px;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: var(--color-bg-alt);
}
.author-hero__avatar--empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; font-weight: 700;
    color: var(--color-accent);
    background: rgba(255,255,255,0.08);
}
.author-hero__role {
    font-size: 11px;
    letter-spacing: .3em;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 8px;
}
.author-hero__name {
    font-family: var(--font-heading, 'Instrument Sans', system-ui, sans-serif);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
    line-height: 1;
}
.author-hero__bio {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    margin: 0;
    max-width: 560px;
}
.author-hero__socials {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.author-hero__social {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 9999px;
    color: #fff;
    transition: all .15s;
    background: transparent;
    text-decoration: none;
}
.author-hero__social:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}
.author-hero__count {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* Single post — author card socials row */
.single-v2__author-socials {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.single-v2__author-socials a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text-muted);
    background: var(--color-bg);
    text-decoration: none;
    transition: all .15s;
}
.single-v2__author-socials a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}
html[data-theme="dark"] .single-v2__author-socials a {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

/* Tip category pills bar (only on /tips) */
.archive-pills {
    padding: 32px 0 8px;
    border-bottom: 1px solid var(--color-border);
}
.archive-pills .container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.archive-pill {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: .08em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all .15s;
}
.archive-pill:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Grid section */
.archive-grid-section { padding: 72px 0 0; }
.archive-empty {
    padding: 80px 20px;
    text-align: center;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.archive-empty svg { color: var(--color-accent); }
.archive-empty h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

/* Continents section inside archive — tighter spacing */
.archive-v2 .continents-section { padding: 56px 0 24px; }
.archive-v2 .continents-section .section-header { margin-bottom: 32px; }

/* Dark-mode refinements for archive */
html[data-theme="dark"] .archive-pill {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-text);
}
html[data-theme="dark"] .archive-pill:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
html[data-theme="dark"] .archive-hero__eyebrow { color: #FDBA74; }

/* =====================================================================
   Kill legacy archive styles so they don't bleed through
   ===================================================================== */
.archive-header,
.archive-content,
.destinations-grid,
.destination-card,
.destination-card-image,
.destination-card-overlay,
.destination-card-content,
.continent-filters { display: none !important; }
.archive-v2 .archive-header,
.archive-v2 .archive-content { display: block !important; }

/* =====================================================================
   ABOUT v2
   ===================================================================== */
.page-about-v2 { padding-bottom: 80px; }
.about-bios { padding: 80px 0 40px; }
.about-bios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.about-bios__item h4 {
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 12px;
}
.about-bios__item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}

.about-quote { padding: 40px 0 56px; text-align: center; }
.about-quote__mark { display: block; margin: 0 auto 14px; color: var(--color-accent); }
.about-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.35;
    font-style: italic;
    color: var(--color-text);
    margin: 0 auto;
    max-width: 760px;
}

.about-trips { padding: 60px 0; }
.about-trips__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about-trip {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    background: #fff;
}
.about-trip picture { display: block; overflow: hidden; aspect-ratio: 16/10; position: relative; }
.about-trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.about-trip:hover img { transform: scale(1.04); }
.about-trip__body { padding: 18px 8px; }
.about-trip__body h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.about-trip__body p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

.about-essentials { background: var(--color-bg-alt, #F8FAFC); margin-top: 40px; padding: 80px 0; }
.about-essentials__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    align-items: end;
}
.about-essential { text-align: center; }
.about-essential picture {
    display: block; aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg);
    position: relative;
}
.about-essential img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-essential__label { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--color-text-muted); }

@media (max-width: 900px) {
    .about-bios__grid { grid-template-columns: 1fr; gap: 24px; }
    .about-trips__grid { grid-template-columns: 1fr; }
    .about-essentials__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
    .about-essentials__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   CONTACT v2
   ===================================================================== */
.page-contact-v2 { padding-bottom: 80px; }
.contact-body { padding: 72px 0; }
.contact-body__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-body__visual picture {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 9999px;
    max-width: 400px;
    margin: 0 auto 24px;
    background: var(--color-bg-alt);
    position: relative;
}
.contact-body__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-body__blurb {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.contact-body__blurb a { color: var(--color-accent); text-decoration: underline; }

.contact-form-wrap { padding-top: 8px; }
.contact-form__heading {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 16px;
}
.contact-form__row { margin-bottom: 14px; }
.contact-form__row input,
.contact-form__row textarea {
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .15s;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus { border-bottom-color: var(--color-accent); }
.contact-form__row textarea { resize: vertical; min-height: 140px; }
.contact-form__submit {
    margin-top: 24px;
    padding: 14px 40px;
    background: var(--color-text);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.contact-form__submit:hover { background: var(--color-accent); }

/* ------------------------------------------------------------------
   Contact-form plugin styles (cf-form travel skin) — the plugin writes
   its own markup (.cf-field, .cf-btn, .cf-status) that our column CSS
   doesn't cover, so style it here to match the travel theme.
   ------------------------------------------------------------------ */
.cf-form--travel { display: flex; flex-direction: column; gap: 16px; }
.cf-form--travel .cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-form--travel .cf-field label {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0;
}
.cf-form--travel .cf-req { color: var(--color-accent); font-weight: 700; }
.cf-form--travel input[type="text"],
.cf-form--travel input[type="email"],
.cf-form--travel textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    color: var(--color-text);
    transition: border-color .15s;
}
.cf-form--travel input:focus,
.cf-form--travel textarea:focus { border-bottom-color: var(--color-accent); }
.cf-form--travel textarea { resize: vertical; min-height: 140px; }
.cf-form--travel .cf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.cf-form--travel .cf-btn {
    padding: 14px 40px;
    background: var(--color-text);
    color: #fff;
    border: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.cf-form--travel .cf-btn:hover { background: var(--color-accent); }
.cf-form--travel .cf-btn:disabled { opacity: .6; cursor: wait; }
.cf-form--travel .cf-status {
    font-size: 13px;
    color: var(--color-text-muted);
}
.cf-form--travel .cf-status--ok  { color: #16a34a; }
.cf-form--travel .cf-status--err { color: #dc2626; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.contact-guides { padding: 72px 0; background: var(--color-bg-alt, #F8FAFC); }
.contact-guides__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.contact-guide {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
}
.contact-guide picture {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-bg);
    position: relative;
    margin-bottom: 10px;
}
.contact-guide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.contact-guide:hover img { transform: scale(1.04); }
.contact-guide span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 900px) {
    .contact-body__grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-guides__row { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   FAQ v2
   ===================================================================== */
.page-faq-v2 { padding-bottom: 80px; }
.faq-body { padding: 72px 0; }
.faq-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-body__heading {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 32px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}
.faq-item__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    padding: 6px 0;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__toggle {
    color: var(--color-accent);
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-item__toggle { transform: rotate(180deg); }
.faq-item__a {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.faq-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.faq-widget h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}
.faq-widget p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}
.faq-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-widget ul a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .15s, color .15s;
}
.faq-widget ul a:hover { border-bottom-color: var(--color-accent); color: var(--color-accent); }

.faq-widget--newsletter form { display: flex; flex-direction: column; gap: 10px; }
.faq-widget--newsletter input {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.faq-widget--newsletter input:focus { border-color: var(--color-accent); }
.faq-widget--newsletter button {
    padding: 12px;
    background: var(--color-text);
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.faq-widget--newsletter button:hover { background: var(--color-accent); }

@media (max-width: 900px) {
    .faq-body__grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-sidebar { position: static; }
}
/* JEKFIX double-bullet */
.prose-v2 ul li, .prose-v2 ol li { list-style: none !important; }
.prose-v2 ul li::marker, .prose-v2 ol li::marker { content: "" !important; }
