/* =============================================================
   Guide Base CSS — Shared across ALL guide pages
   Loaded ONLY on pages using page-guide.php template.
   Does NOT affect city pages or homepage.
   ============================================================= */

/* --- Layout --- */
.guide { max-width: 1440px; margin: 0 auto; }
.guide__content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2D2D2D;
}
/* Prose blocks within content stay readable width */
.guide__content > p,
.guide__content > ul,
.guide__content > ol,
.guide__content > blockquote,
.guide__content > h2,
.guide__content > h3 {
    max-width: 800px;
}
/* Full-width components break out of prose width */
.guide__content > .guide-card,
.guide__content > .guide-stat,
.guide__content > .guide-accordion,
.guide__content > .guide-compare,
.guide__content > .guide-checklist,
.guide__content > .guide-icons,
.guide__content > .guide-quote,
.guide__content > .guide-grid,
.guide__content > figure {
    max-width: 100%;
}

/* --- Breadcrumbs --- */
.guide__breadcrumbs {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}
.guide__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}
.guide__breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #ccc;
}
.guide__breadcrumb-list a {
    color: #7C2D3B;
    text-decoration: none;
}
.guide__breadcrumb-list a:hover { text-decoration: underline; }

/* --- Hero (compact gradient, matching city-page style) --- */
.guide__hero {
    background: linear-gradient(135deg, #7C2D3B 0%, #5A1F2C 100%);
    padding: 3rem 1.5rem 2rem;
    color: #fff;
}
.guide__hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.guide__title {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.75rem;
}
.guide__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.guide__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
}
.guide__meta-author { font-weight: 600; color: #D4A853; }
.guide__meta-sep { opacity: 0.5; }
.guide__hero-image { display: none; /* hero image hidden — gradient background instead */ }

/* --- TOC Bar (sticky, full-width, below header) --- */
.guide-toc-bar {
    position: sticky;
    top: 84px; /* below sticky header (min-height: 84px) */
    z-index: 90; /* below header z-index */
    background: #fff;
    border-bottom: 1px solid #E8E0D8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%; /* full viewport width */
}
.guide-toc-bar__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
    overflow: hidden;
}
.guide-toc-bar__label {
    font-family: 'Lexend', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7C2D3B;
    white-space: nowrap;
}
.guide-toc-bar__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #D4A853;
    width: 0%;
    transition: width 0.2s ease;
}
.guide-toc-bar__list {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.guide-toc-bar__list::-webkit-scrollbar { display: none; }
.guide-toc-bar__list li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.guide-toc-bar__list li a:hover,
.guide-toc-bar__list li a.active {
    color: #7C2D3B;
    border-bottom-color: #7C2D3B;
}
.guide-toc-bar__arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    padding: 0;
}
.guide-toc-bar__arrow:hover { color: #7C2D3B; }
.guide-toc-bar__arrow svg { width: 16px; height: 16px; }

/* --- Mobile TOC --- */
.guide-toc-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid #E8E0D8;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
.guide-toc-mobile__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7C2D3B;
    cursor: pointer;
}
.guide-toc-mobile__pct {
    margin-left: auto;
    color: #D4A853;
    font-weight: 700;
}
.guide-toc-mobile__drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.guide-toc-mobile.open .guide-toc-mobile__drawer {
    max-height: 60vh;
    overflow-y: auto;
}
.guide-toc-mobile__list {
    list-style: none;
    padding: 0 1.5rem 1rem;
    margin: 0;
}
.guide-toc-mobile__list li a {
    display: block;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0ebe4;
}
.guide-toc-mobile__list li a.active { color: #7C2D3B; font-weight: 600; }

/* --- Content Typography --- */
.guide__content h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    scroll-margin-top: 64px;
}
.guide__content h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D2D2D;
    margin: 2rem 0 0.75rem;
}
.guide__content p { margin: 0 0 1.25rem; }
.guide__content ul, .guide__content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}
.guide__content li { margin-bottom: 0.5rem; }
.guide__content a {
    color: #7C2D3B;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.guide__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* --- Component: Info Card --- */
.guide-card {
    background: #FAF7F2;
    border: 1px solid #E8E0D8;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.guide-card--burgundy {
    background: #F9F2F3;
    border-color: #E8D0D4;
}
.guide-card--gold {
    background: #FDF8EE;
    border-color: #E8DCC8;
}
.guide-card__title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1A1A1A;
}
.guide-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: #7C2D3B;
}

/* --- Component: Stat Callout --- */
.guide-stat {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #7C2D3B 0%, #5A1F2C 100%);
    border-radius: 12px;
    color: #fff;
}
.guide-stat__item { flex: 1; text-align: center; }
.guide-stat__number {
    font-family: 'Lexend', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #D4A853;
}
.guide-stat__label {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* --- Component: Accordion --- */
.guide-accordion {
    margin: 1.5rem 0;
    border: 1px solid #E8E0D8;
    border-radius: 12px;
    overflow: hidden;
}
.guide-accordion__item { border-bottom: 1px solid #E8E0D8; }
.guide-accordion__item:last-child { border-bottom: none; }
.guide-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: #FAF7F2;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.guide-accordion__trigger:hover { background: #F5EFE6; }
.guide-accordion__trigger svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #7C2D3B;
    transition: transform 0.2s;
}
.guide-accordion__item.open .guide-accordion__trigger svg {
    transform: rotate(180deg);
}
.guide-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.guide-accordion__item.open .guide-accordion__content {
    max-height: 2000px;
}
.guide-accordion__body {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
}

/* --- Component: Comparison Table --- */
.guide-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E0D8;
}
.guide-compare thead th {
    background: #7C2D3B;
    color: #fff;
    padding: 0.875rem 1rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    text-align: left;
}
.guide-compare tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E8E0D8;
}
.guide-compare tbody tr:nth-child(even) td {
    background: #FAF7F2;
}
.guide-compare .check { color: #2D8B4E; font-weight: 700; }
.guide-compare .cross { color: #C0392B; font-weight: 700; }

/* --- Component: Checklist --- */
.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.guide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    background: #FAF7F2;
    border-radius: 8px;
}
.guide-checklist li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #7C2D3B;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

/* --- Component: Expert Quote --- */
.guide-quote {
    border-left: 4px solid #D4A853;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: #FDF8EE;
    border-radius: 0 12px 12px 0;
}
.guide-quote__text {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 0.5rem;
}
.guide-quote__cite {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7C2D3B;
}

/* --- Component: CTA Block --- */
.guide__cta {
    background: linear-gradient(135deg, #7C2D3B 0%, #5A1F2C 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
}
.guide__cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.guide__cta h2 {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: #fff;
}
.guide__cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

/* --- Component: Icon Grid --- */
.guide-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.guide-icons__item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #FAF7F2;
    border-radius: 12px;
    border: 1px solid #E8E0D8;
}
.guide-icons__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: #7C2D3B;
}
.guide-icons__label {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1A1A1A;
}
.guide-icons__desc {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .guide__title { font-size: 2rem; }
    .guide-stat { flex-wrap: wrap; }
    .guide-stat__item { min-width: 120px; }
}
@media (max-width: 768px) {
    .guide-toc-bar { display: none; }
    .guide-toc-mobile { display: block; }
    .guide__title { font-size: 1.75rem; }
    .guide__content { font-size: 1rem; padding: 1.5rem 1rem 3rem; }
    .guide__content h2 { font-size: 1.5rem; }
    .guide-stat { flex-direction: column; gap: 1rem; }
    .guide-stat__number { font-size: 1.5rem; }
    .guide-icons { grid-template-columns: repeat(2, 1fr); }
    .guide__cta { padding: 2rem 1rem; }
    .guide__cta h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .guide__hero { padding: 1.5rem 1rem 1rem; }
    .guide__title { font-size: 1.5rem; }
    .guide__subtitle { font-size: 1.0625rem; }
    .guide-icons { grid-template-columns: 1fr; }
    .guide-compare { font-size: 0.8125rem; }
    .guide-compare thead th,
    .guide-compare tbody td { padding: 0.5rem 0.75rem; }
}
