.guide-page {
    --guide-surface: rgba(255, 255, 255, 0.88);
    --guide-border: #ddd8cb;
    --guide-muted: #66645f;
}

.guide-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 22px 22px 64px;
}

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 2px 0 16px;
    color: var(--hb-color-ink-muted);
    font-size: 12px;
}

.guide-breadcrumbs a {
    text-decoration: none;
}

.guide-breadcrumbs a:hover {
    text-decoration: underline;
}

.guide-hero,
.guide-panel,
.guide-cta-panel,
.guide-disclaimer {
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: var(--guide-surface);
    box-shadow: 0 10px 28px rgba(41, 36, 29, 0.035);
}

.guide-hero {
    padding: 32px 34px;
    margin-bottom: 18px;
}

.guide-index-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,247,237,.94));
}

.guide-hero h1 {
    max-width: 860px;
    margin: 7px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.guide-hero p,
.guide-lead {
    max-width: 840px;
    margin: 0;
    color: var(--hb-color-ink-muted);
    font-size: 17px;
    line-height: 1.65;
}

.guide-updated {
    margin-top: 16px;
    color: var(--guide-muted);
    font-size: 12px;
    font-weight: 650;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.guide-primary-action,
.guide-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.guide-primary-action {
    border: 1px solid var(--hb-color-action);
    background: var(--hb-color-action);
    color: #fff !important;
}

.guide-secondary-action {
    border: 1px solid var(--guide-border);
    background: #fff;
}

.guide-panel {
    padding: 26px;
    margin-bottom: 18px;
}

.guide-panel h2,
.guide-cta-panel h2 {
    margin: 6px 0 10px;
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.guide-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-card {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--guide-border);
    border-radius: 9px;
    background: #fff;
}

.guide-card-eyebrow,
.guide-card .eyebrow {
    color: #8a6d38;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.guide-card h2 {
    margin: 8px 0 10px;
    font-size: 22px;
}

.guide-card h2 a {
    text-decoration: none;
}

.guide-card p,
.guide-body-copy {
    color: var(--hb-color-ink-muted);
    line-height: 1.6;
}

.guide-text-action {
    display: inline-block;
    margin-top: 10px;
    font-weight: 750;
    text-decoration: none;
}

.guide-text-action:hover {
    text-decoration: underline;
}

.guide-location-grid,
.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.guide-location-link,
.guide-related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 15px;
    border: 1px solid var(--guide-border);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.guide-location-link span,
.guide-related-card span {
    color: var(--guide-muted);
    font-size: 12px;
    line-height: 1.45;
}

.guide-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.guide-article-main {
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: var(--guide-surface);
    overflow: hidden;
}

.guide-article-section {
    padding: 26px 30px;
    border-bottom: 1px solid #e9e5da;
}

.guide-article-section:last-child {
    border-bottom: 0;
}

.guide-article-section h2 {
    margin: 0 0 13px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.guide-article-section p,
.guide-article-section li {
    color: #3f3d39;
    font-size: 15px;
    line-height: 1.72;
}

.guide-article-section p:last-child {
    margin-bottom: 0;
}

.guide-article-section ul {
    margin: 10px 0 0;
    padding-left: 22px;
}

.guide-article-section li + li {
    margin-top: 8px;
}

.guide-checklist-card {
    position: sticky;
    top: 82px;
    padding: 22px;
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: #fbf7ea;
}

.guide-checklist-card h2 {
    margin: 7px 0 12px;
    font-size: 20px;
}

.guide-checklist-card ul {
    margin: 0;
    padding-left: 20px;
}

.guide-checklist-card li {
    color: #403d36;
    font-size: 13px;
    line-height: 1.55;
}

.guide-checklist-card li + li {
    margin-top: 8px;
}

.guide-source-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid #bca56e;
    background: #fbf8ef;
    font-size: 12px;
}

.guide-source-links a {
    font-weight: 650;
}

.guide-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0;
    padding: 25px 28px;
}

.guide-cta-panel p {
    max-width: 720px;
    margin: 0;
    color: var(--guide-muted);
    line-height: 1.55;
}

.guide-disclaimer {
    margin-top: 18px;
    padding: 16px 18px;
    color: var(--guide-muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .guide-card-grid,
    .guide-location-grid,
    .guide-related-grid,
    .guide-article-layout {
        grid-template-columns: 1fr;
    }

    .guide-checklist-card {
        position: static;
    }

    .guide-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .guide-shell {
        padding: 16px 14px 48px;
    }

    .guide-hero,
    .guide-panel,
    .guide-article-section {
        padding: 20px;
    }

    .guide-hero h1 {
        font-size: 31px;
    }
}

/* Keep the primary comparison CTA readable on desktop without forcing the
   button label into an awkward two-line wrap. */
.guide-cta-panel > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.guide-cta-panel > .guide-primary-action {
    flex: 0 0 auto;
    min-width: 190px;
    padding-left: 20px;
    padding-right: 20px;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 860px) {
    .guide-cta-panel > .guide-primary-action {
        min-width: 0;
        white-space: normal;
    }
}

/* SEO Improvement Pass 3: visible publishing and methodology signals. */
.guide-publishing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 16px;
    color: var(--guide-muted);
    font-size: 12px;
    line-height: 1.5;
}

.guide-publishing-meta span {
    display: inline-block;
}

.guide-publishing-meta a {
    color: inherit;
    font-weight: 650;
}

.guide-method-panel p {
    margin: 0;
    max-width: 900px;
    color: var(--guide-muted);
    line-height: 1.65;
}

.guide-method-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.guide-method-links .guide-text-action {
    margin: 0;
}

/* SEO Improvement Pass 4: explanatory copy above priority local comparison links. */
.guide-panel-intro {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--guide-muted);
    line-height: 1.55;
}
