/* ═══════════════════════════════════════════════════════════════════════
   1860 Travels — Public (customer-facing) Help Center
   Matches the front-end site: Montserrat, blue #048ED3 / amber #F3A316 /
   navy #003087, pill buttons, rounded cards. Everything is namespaced .phc-*
   and scoped under .phc-root so the site's global tag rules don't leak in.
   ═══════════════════════════════════════════════════════════════════════ */

.phc-root {
    --blue: #048ED3;
    --blue-d: #036ca3;
    --blue-dd: #02568a;
    --amber: #F3A316;
    --navy: #002070;
    --navy-2: #003087;
    --ink: #1a1b13;
    --ink-2: #4b5563;
    --ink-3: #6b7280;
    --line: #e6e2d9;
    --surface: #ffffff;
    --bg: #f6f5f1;
    --bg-2: #efeee8;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --shadow: 0 6px 18px rgba(4,142,211,0.10), 0 2px 6px rgba(20,21,14,0.05);
    --shadow-lg: 0 14px 40px -12px rgba(4,142,211,0.28);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
}
.phc-root *, .phc-root *::before, .phc-root *::after { box-sizing: border-box; }
.phc-root a { text-decoration: none; color: inherit; }

.phc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Hero ── */
.phc-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: #fff; text-align: center;
    padding: 56px 20px 64px;
    position: relative; overflow: hidden;
}
.phc-hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
    background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.phc-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.phc-hero h1 { font-size: 34px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.phc-hero p { font-size: 15px; opacity: 0.92; margin: 0 0 26px; line-height: 1.6; }

/* Search box */
.phc-search-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.phc-root input.phc-search {
    width: 100% !important; height: 56px !important;
    border: none !important; border-radius: 32px !important;
    background: #fff !important; margin: 0 !important;
    padding: 0 60px 0 56px !important;
    font-size: 15px !important; font-family: var(--font) !important; color: var(--ink) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important; outline: none !important;
}
.phc-root input.phc-search::placeholder { color: #9aa0a6 !important; }
.phc-search-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--blue); pointer-events: none; display: flex;
}
.phc-suggest {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
    background: #fff; border-radius: var(--r-md);
    box-shadow: 0 20px 50px rgba(15,23,42,0.20); overflow: hidden;
    text-align: left; display: none; max-height: 400px; overflow-y: auto;
}
.phc-suggest.open { display: block; }
.phc-suggest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; cursor: pointer; color: var(--ink);
    border-bottom: 1px solid #f1efe9;
}
.phc-suggest-item:last-child { border-bottom: 0; }
.phc-suggest-item:hover, .phc-suggest-item.active { background: #f6faff; }
.phc-suggest-icon { color: var(--blue); display: flex; flex-shrink: 0; }
.phc-suggest-title { font-size: 14px; font-weight: 600; }
.phc-suggest-title mark { background: #fff2d6; color: inherit; border-radius: 3px; padding: 0 2px; }
.phc-suggest-cat { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.phc-suggest-empty { padding: 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ── Section shell ── */
.phc-section { padding: 20px 0 10px; }
.phc-section-title {
    font-size: 20px; font-weight: 700; margin: 24px 0 4px; letter-spacing: -0.01em;
}
.phc-section-sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 18px; }

/* ── Category grid ── */
.phc-cat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px; margin: 6px 0 30px;
}
.phc-cat-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: block; color: inherit;
}
.phc-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.phc-cat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; margin-bottom: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--acc, var(--blue)) 18%, #fff), color-mix(in srgb, var(--acc, var(--blue)) 8%, #fff));
    color: var(--acc, var(--blue));
}
.phc-cat-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.phc-cat-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin: 0 0 12px; }
.phc-cat-count { font-size: 12.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }

/* ── Quick actions ── */
.phc-quick-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 10px;
}
.phc-quick {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phc-quick:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--blue); }
.phc-quick-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eaf6fd; color: var(--blue); flex-shrink: 0; }

/* ── Popular list ── */
.phc-popular {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px; margin-bottom: 40px;
}
.phc-pop-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 14px 16px; color: inherit; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.phc-pop-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.phc-pop-ico { color: var(--blue); flex-shrink: 0; display: flex; }
.phc-pop-title { font-size: 14px; font-weight: 600; }
.phc-pop-cat { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

/* ── Breadcrumbs ── */
.phc-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--ink-3); padding: 22px 0 6px; }
.phc-crumbs a { color: var(--ink-3); }
.phc-crumbs a:hover { color: var(--blue); }
.phc-crumbs .sep { color: #c7c2b6; }
.phc-crumbs .current { color: var(--ink); font-weight: 600; }

/* ── Article layout ── */
.phc-article-layout {
    display: grid; grid-template-columns: 250px minmax(0,1fr) 220px;
    gap: 36px; align-items: start; padding: 8px 0 60px;
}
.phc-article-layout.no-toc { grid-template-columns: 250px minmax(0,1fr); }

/* Sidebar nav */
.phc-side { position: sticky; top: 20px; }
.phc-side-cat { margin-bottom: 6px; }
.phc-side-cat-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-3); padding: 8px 10px 4px;
}
.phc-side-link {
    display: block; padding: 8px 12px; border-radius: 9px;
    font-size: 13.5px; color: var(--ink-2); font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}
.phc-side-link:hover { background: #fff; color: var(--blue); }
.phc-side-link.active { background: #eaf6fd; color: var(--blue-d); font-weight: 700; }

/* Article body */
.phc-article { min-width: 0; }
.phc-art-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; line-height: 1.2; }
.phc-art-summary { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
.phc-art-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.phc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; background: var(--bg-2); color: var(--ink-2); }
.phc-badge.blue { background: #eaf6fd; color: var(--blue-d); }
.phc-art-actions { margin-left: auto; display: flex; gap: 8px; }

/* Open-page / CTA callout */
.phc-cta {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, #eaf6fd, #f3fbff);
    border: 1px solid #cfeafb; border-radius: var(--r-md);
    padding: 18px 22px; margin-bottom: 28px;
}
.phc-cta-info { flex: 1; min-width: 200px; }
.phc-cta-label { font-size: 15px; font-weight: 700; color: var(--navy-2); }
.phc-cta-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* Buttons */
.phc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 30px; font-size: 14px; font-weight: 600;
    font-family: var(--font); cursor: pointer; border: 1px solid var(--line);
    background: #fff; color: var(--ink); transition: all 0.2s ease; white-space: nowrap;
}
.phc-btn:hover { border-color: #cfeafb; color: var(--blue-d); box-shadow: var(--shadow); }
.phc-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-d));
    color: #fff !important; border: none;
    box-shadow: 0 6px 18px rgba(4,142,211,0.3);
}
.phc-btn-primary:hover { background: linear-gradient(135deg, var(--blue-d), var(--blue-dd)); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4,142,211,0.45); color: #fff !important; }
.phc-btn-icon { padding: 10px 14px; }

/* Sections */
.phc-sec { margin-bottom: 30px; }
.phc-sec-title { font-size: 19px; font-weight: 700; margin: 0 0 12px; scroll-margin-top: 20px; letter-spacing: -0.01em; }
.phc-prose { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.phc-prose strong { color: var(--ink); font-weight: 700; }
.phc-prose code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--bg-2); border-radius: 6px; padding: 2px 6px; }
.phc-prose a, .phc-link { color: var(--blue-d); font-weight: 600; }
.phc-prose a:hover, .phc-link:hover { text-decoration: underline; }

/* Steps */
.phc-steps { counter-reset: phcstep; display: flex; flex-direction: column; gap: 4px; }
.phc-step { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.phc-step::before {
    counter-increment: phcstep; content: counter(phcstep);
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff;
    font-size: 14px; font-weight: 700; display: grid; place-items: center; z-index: 1;
}
.phc-step::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.phc-step:last-child::after { display: none; }
.phc-step-body { padding-top: 4px; }
.phc-step-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.phc-step-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* Bullet lists */
.phc-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.phc-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.phc-bullets li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.phc-bullets.tips li svg { color: var(--amber); }

/* Tables */
.phc-table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.phc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.phc-table th { text-align: left; padding: 12px 16px; background: var(--bg-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.phc-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.55; }
.phc-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* FAQ */
.phc-faq { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.phc-faq-item { border-bottom: 1px solid var(--line); }
.phc-faq-item:last-child { border-bottom: 0; }
.phc-faq-q { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; cursor: pointer; padding: 16px 18px; text-align: left; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); }
.phc-faq-q:hover { background: #f9fdff; }
.phc-faq-q .phc-caret { margin-left: auto; transition: transform 0.2s ease; color: var(--blue); flex-shrink: 0; }
.phc-faq-item.open .phc-faq-q .phc-caret { transform: rotate(180deg); }
.phc-faq-a { display: none; padding: 0 18px 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.phc-faq-item.open .phc-faq-a { display: block; }

/* TOC */
.phc-toc { position: sticky; top: 20px; font-size: 13px; }
.phc-toc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 10px; }
.phc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.phc-toc a { display: block; padding: 6px 14px; color: var(--ink-3); border-left: 2px solid transparent; margin-left: -2px; line-height: 1.4; }
.phc-toc a:hover { color: var(--blue); }
.phc-toc a.active { color: var(--blue-d); border-left-color: var(--blue); font-weight: 700; }

/* Prev / next */
.phc-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.phc-pn { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: #fff; transition: box-shadow 0.15s ease, transform 0.15s ease; display: flex; flex-direction: column; gap: 3px; color: inherit; }
.phc-pn:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfeafb; }
.phc-pn.next { text-align: right; }
.phc-pn-dir { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.phc-pn.next .phc-pn-dir { justify-content: flex-end; }
.phc-pn-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* Related */
.phc-related { margin-top: 30px; }
.phc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-top: 12px; }
.phc-rel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: #fff; transition: box-shadow 0.15s ease, transform 0.15s ease; color: inherit; }
.phc-rel:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfeafb; }
.phc-rel-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.phc-rel-cat { font-size: 12px; color: var(--ink-3); }

/* Category page grid */
.phc-cat-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; margin: 20px 0 50px; }
.phc-cat-header { display: flex; align-items: center; gap: 16px; padding: 12px 0 6px; }

/* Search results */
.phc-results { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin-bottom: 50px; }
.phc-result { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: box-shadow 0.15s ease, transform 0.15s ease; color: inherit; }
.phc-result:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfeafb; }
.phc-result-cat { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.phc-result-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.phc-result-snippet { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

.phc-empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }

/* Contact strip */
.phc-contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: var(--r-lg); padding: 34px; text-align: center; color: #fff; margin: 10px 0 50px;
}
.phc-contact h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.phc-contact p { font-size: 14px; opacity: 0.92; margin: 0 0 20px; }
.phc-contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phc-contact .phc-btn { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.phc-contact .phc-btn:hover { background: #fff; color: var(--blue-d); }

/* ── Responsive ── */
@media (max-width: 1000px) {
    .phc-article-layout, .phc-article-layout.no-toc { grid-template-columns: 1fr; }
    .phc-toc { display: none; }
    .phc-side {
        position: static; margin-bottom: 8px;
        border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden;
    }
    .phc-side-toggle {
        display: flex !important; align-items: center; justify-content: space-between; width: 100%;
        padding: 14px 16px; background: #fff; border: none; font-family: var(--font);
        font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
    }
    .phc-side-nav { display: none; padding: 4px 8px 10px; }
    .phc-side.open .phc-side-nav { display: block; }
    .phc-side.open .phc-side-toggle svg { transform: rotate(180deg); }
}
.phc-side-toggle { display: none; }

@media (max-width: 640px) {
    .phc-hero { padding: 40px 16px 52px; }
    .phc-hero h1 { font-size: 26px; }
    .phc-hero p { font-size: 14px; }
    .phc-art-title { font-size: 24px; }
    .phc-prevnext { grid-template-columns: 1fr; }
    .phc-art-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
    .phc-cta { flex-direction: column; align-items: stretch; }
    .phc-cta .phc-btn-primary { justify-content: center; }
}

/* ── Print ── */
@media print {
    .t-topbar, .t-navbar, .t-nl-bar, .t-footer, .phc-side, .phc-toc,
    .phc-prevnext, .phc-art-actions, .phc-contact, .phc-crumbs { display: none !important; }
    .phc-article-layout { display: block; }
    .phc-faq-a { display: block !important; }
    .phc-hero { background: none; color: #000; padding: 0; }
}
