:root {
    --guide-ink: #211d1b;
    --guide-muted: #706963;
    --guide-cream: #f7f2eb;
    --guide-accent: #c99262;
    --guide-line: rgba(33, 29, 27, .12);
}

body { background: #fff; color: var(--guide-ink); }
.navbar { min-height: 78px; padding: .9rem 0; background: rgba(24, 21, 20, .97); box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.navbar.scrolled { background: rgba(255, 255, 255, .96); }
.nav-link.active { color: var(--guide-accent) !important; }
.navbar .container { flex-wrap: nowrap; }
.navbar-brand { flex: 0 0 auto; min-width: 132px; overflow: visible; }
.navbar-brand .brand-text, .navbar-brand .brand-subtitle { white-space: nowrap; }
.navbar-nav { align-items: center; }
.navbar-nav .nav-link { margin: 0 .52rem; padding: .5rem 0; font-size: .88rem; white-space: nowrap; }

.guide-hero { position: relative; min-height: 480px; padding: 130px 0 70px; display: flex; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #211d1b 0%, #3b2a21 58%, #805638 100%); }
.guide-hero-shade { position: absolute; inset: 0; background: radial-gradient(circle at 78% 36%, rgba(224, 175, 130, .22), transparent 34%); }
.guide-kicker, .section-intro > span, .panel-kicker { display: block; margin-bottom: 1rem; color: #e0af82; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.guide-hero h1 { max-width: 940px; margin-bottom: 1.5rem; color: #fff; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 600; line-height: 1.06; text-wrap: balance; }
.guide-hero h1 span { color: #e0af82; }
.guide-hero p { max-width: 660px; margin-bottom: 2rem; color: rgba(255,255,255,.86); font-size: 1.2rem; line-height: 1.7; }
.guide-hero-link { display: inline-flex; gap: .75rem; align-items: center; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: .35rem; }

.section-intro { max-width: 720px; margin-bottom: 2.5rem; }
.section-intro h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.5rem); color: var(--guide-ink); }
.section-intro.compact h2 { font-size: clamp(2rem, 3vw, 2.8rem); }

.featured-guide { background: var(--guide-cream); }
.featured-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); min-height: 500px; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 22px 55px rgba(33,29,27,.09); }
.featured-image { display: block; min-height: 480px; overflow: hidden; }
.featured-image img, .guide-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured-card:hover .featured-image img, .guide-card:hover .guide-card-image img { transform: scale(1.035); }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem; }
.article-tag { display: inline-block; align-self: flex-start; margin-bottom: 1rem; padding: .4rem .8rem; color: #8f5f37; background: #f4e6d9; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.featured-copy h3 { margin-bottom: 1.25rem; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.12; }
.featured-copy h3 a, .guide-card h3 a { color: inherit; text-decoration: none; }
.featured-copy p, .guide-card p, .sidebar-panel p { color: var(--guide-muted); line-height: 1.75; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--guide-line); }
.article-footer a { color: var(--guide-ink); font-weight: 600; text-decoration: none; }
.article-footer > span { color: #948b84; font-size: .85rem; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.guide-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--guide-line); border-radius: 14px; transition: transform .3s, box-shadow .3s; }
.guide-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(33,29,27,.1); }
.guide-card-image { display: block; height: 235px; overflow: hidden; }
.guide-card-body { padding: 1.6rem; }
.guide-main .row > .col-md-6 { display: flex; }
.guide-main .col-md-6 .guide-card { display: flex; width: 100%; flex-direction: column; }
.guide-main .col-md-6 .guide-card-body { display: flex; flex: 1; flex-direction: column; }
.guide-card h3 { margin-bottom: .8rem; font-size: 1.55rem; }
.guide-card h3 a { display: -webkit-box; overflow: hidden; padding-bottom: .12em; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.guide-card p { min-height: 5.2em; }
.guide-main .col-12 .guide-card { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
.guide-main .col-12 .guide-card-image { height: 100%; min-height: 360px; }
.guide-main .col-12 .guide-card-body { display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; }
.guide-main .col-12 .guide-card p { min-height: 0; }
.sticky-panel { position: sticky; top: 150px; }
.sidebar-panel { padding: 2.2rem; color: #fff; background: var(--guide-ink); border-radius: 16px; }
.sidebar-panel h2 { margin-bottom: 1rem; color: #fff; font-size: 2rem; }
.sidebar-panel p { color: rgba(255,255,255,.72); }
.sidebar-cta { display: block; margin-top: .8rem; padding: .9rem 1rem; text-align: center; text-decoration: none; border-radius: 999px; font-weight: 600; }
.sidebar-cta.primary { color: #fff; background: var(--guide-accent); }
.sidebar-cta.secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.sidebar-trust { display: grid; gap: .5rem; margin-top: 1.5rem; color: rgba(255,255,255,.65); font-size: .82rem; }

@media (max-width: 991.98px) {
    .navbar { min-height: 70px; padding: .75rem 0; }
    .navbar .navbar-nav { align-items: stretch; }
    .navbar-nav .nav-link { margin: 0; padding: .8rem 0; font-size: 1rem; }
    .offcanvas { width: min(320px, 86vw) !important; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-image { min-height: 390px; }
    .guide-layout { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .guide-sidebar { max-width: 560px; }
}

@media (max-width: 767.98px) {
    .guide-hero { min-height: 430px; padding: 110px 0 55px; }
    .guide-kicker { margin-bottom: .75rem; font-size: .68rem; letter-spacing: .14em; }
    .guide-hero h1 { max-width: 100%; margin-bottom: 1rem; font-size: clamp(2.25rem, 11vw, 3.25rem); line-height: 1.08; }
    .guide-hero p { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.55; }
    .featured-copy { padding: 2rem; }
    .featured-image { min-height: 300px; }
    .guide-card-image { height: 220px; }
    .guide-main .col-12 .guide-card { grid-template-columns: 1fr; }
    .guide-main .col-12 .guide-card-image { height: 240px; min-height: 0; }
}
