/* ============================================================
   Blog Editorial Overlay
   Applied on top of legacy blog article HTML to bring it in line
   with the Editorial design system without a full rewrite.
   ============================================================ */

/* Reset legacy body */
body {
    font-family: 'Cairo', system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* Legacy header — restyle to editorial */
body > header {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--hair);
    position: sticky;
    top: 0;
    z-index: 100;
}
body > header .header-container,
body > header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
body > header .logo img {
    max-height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(20, 22, 27, 0.06));
}
body > header .main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
body > header .main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 200ms;
}
body > header .main-nav a:hover {
    color: var(--brand);
}
body > header .menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--hair-2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
}
@media (max-width: 900px) {
    body > header .menu-toggle { display: inline-block; }
    body > header .main-nav {
        flex-basis: 100%;
        display: none;
    }
    body > header .main-nav.open { display: block; }
    body > header .main-nav ul { flex-direction: column; gap: 12px; }
}

/* Breadcrumb */
.breadcrumb {
    background: var(--surface-2);
    border-bottom: 1px solid var(--hair);
    padding: 12px 0;
}
.breadcrumb .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--ink-3);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-inline-start: 8px;
    opacity: 0.5;
}
.breadcrumb a { color: var(--gold-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Article wrapper — the editorial reading experience */
.article-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.article-wrapper h1 {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--ink);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
    margin-bottom: 32px;
    border-block: 1px solid var(--hair);
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.article-meta i { color: var(--gold-2); margin-inline-end: 6px; }
.article-wrapper h2 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 56px 0 20px;
    padding-top: 32px;
    border-top: 1px solid var(--hair);
    color: var(--ink);
    line-height: 1.2;
}
.article-wrapper h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.article-wrapper h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 40px 0 14px;
    color: var(--ink);
}
.article-wrapper h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 24px 0 10px;
    color: var(--ink);
}
.article-wrapper p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-2);
    margin-bottom: 20px;
}
.article-wrapper p:first-of-type::first-letter,
.article-wrapper > p.lead::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 78px;
    font-weight: 700;
    float: right;
    line-height: 0.85;
    padding: 6px 12px 0 0;
    color: var(--brand);
    font-style: italic;
}
.article-wrapper ul, .article-wrapper ol {
    margin: 16px 0 24px;
    padding-inline-start: 24px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.85;
}
.article-wrapper li { margin-bottom: 10px; }
.article-wrapper strong { color: var(--ink); font-weight: 800; }
.article-wrapper em { color: var(--cognac); font-style: italic; }
.article-wrapper a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid var(--brand);
    transition: color 200ms, border-color 200ms;
}
.article-wrapper a:hover { color: var(--cognac); border-color: var(--cognac); }
.article-wrapper blockquote {
    border-inline-start: 4px solid var(--gold);
    background: var(--surface-warm);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: var(--cognac);
}
.article-wrapper blockquote strong { color: var(--brand); }

/* Tables */
.article-wrapper table, .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}
.article-wrapper th, .compare-table th {
    background: var(--surface-warm);
    color: var(--ink);
    font-weight: 800;
    padding: 14px 16px;
    text-align: start;
    border-bottom: 2px solid var(--brand);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.article-wrapper td, .compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hair);
    color: var(--ink-2);
}
.article-wrapper tr:last-child td, .compare-table tr:last-child td { border-bottom: 0; }

/* Callouts / boxes */
.callout, .note-box, .cta-box, .package-card, .tip-box, .warning-box {
    background: var(--surface-warm);
    border: 1px solid var(--hair-2);
    border-inline-start: 4px solid var(--brand);
    padding: 24px 28px;
    border-radius: 12px;
    margin: 28px 0;
}
.callout h3, .callout h4, .cta-box h3 { margin-top: 0; }
.warning-box { border-inline-start-color: var(--gold-2); }

/* FAQ collapse */
.faq-item, details {
    background: var(--surface);
    border: 1px solid var(--hair);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 4px 8px;
    transition: box-shadow 300ms;
}
.faq-item[open], details[open] {
    box-shadow: 0 6px 20px rgba(20, 22, 27, 0.06);
    border-color: var(--gold);
}
.faq-item summary, details summary {
    cursor: pointer;
    padding: 16px 12px;
    font-weight: 800;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker, details summary::-webkit-details-marker { display: none; }

/* Legacy footer — restyle to editorial dark */
body > footer {
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 24px;
    margin-top: 80px;
}
body > footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
body > footer > .container > div:not(.footer-bottom),
body > footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body > footer h3, body > footer h4 {
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
body > footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms;
}
body > footer a:hover { color: var(--gold); }
body > footer ul { list-style: none; padding: 0; margin: 0; }
body > footer li { margin-bottom: 10px; }
body > footer .footer-logo img { max-height: 44px; filter: brightness(0) invert(1) brightness(0.96); }
body > footer .footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Font Awesome fallback — hide icons that fail to load */
[class^="fa-"]:empty:before, [class*=" fa-"]:empty:before {
    font-family: inherit;
}

/* Container helper */
main > .container, section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
