/* HomeDecisionLab sample chrome + guided tour
   Aurora palette: navy #0F172A, gold #C6A15B. */

:root {
    --hdl-tour-navy: #0F172A;
    --hdl-tour-navy-soft: #1E293B;
    --hdl-tour-gold: #C6A15B;
    --hdl-tour-gold-soft: #E4CB98;
}

/* Sample pages carry the home-page nav (hdl_sample_topnav), so hide the
   default marketing header + promo banner and drop the white gradient gutters
   around the banner (the area matches the grey page background). */
.sample-view-page .site-header,
.ha-sample-report-page .site-header,
.sample-view-page .launch-promo-banner,
.ha-sample-report-page .launch-promo-banner { display: none !important; }

.sample-view-page .sample-report-wrap,
.ha-sample-report-page .sample-report-wrap { background: none !important; }

/* ---------------------------------------------------------------------------
   Slim sample banner + Previous / Next navigation
   Width is aligned to the report container below so the edges line up.
--------------------------------------------------------------------------- */
.hdl-sample-banner {
    width: min(100% - 40px, 1200px);
    max-width: none;
    margin: 18px auto 14px;
    padding: 0;
    box-sizing: border-box;
}

/* Home Analysis report container is min(100% - 36px, 1180px). */
.ha-sample-report-page .hdl-sample-banner { width: min(100% - 36px, 1180px); }

.hdl-sample-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    background: linear-gradient(120deg, var(--hdl-tour-navy) 0%, var(--hdl-tour-navy-soft) 100%);
    border: 1px solid rgba(198, 161, 91, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    color: #F8FAFC;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.hdl-sample-banner__msg {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    min-width: 0;
}

.hdl-sample-banner__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hdl-tour-navy);
    background: var(--hdl-tour-gold);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.hdl-sample-banner__copy {
    color: rgba(248, 250, 252, 0.9);
}

.hdl-sample-banner__copy strong {
    color: #fff;
    font-weight: 700;
}

.hdl-sample-banner__lead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.hdl-sample-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(198, 161, 91, 0.55);
    background: transparent;
    color: #F8FAFC;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hdl-sample-banner__btn:hover,
.hdl-sample-banner__btn:focus-visible {
    background: rgba(198, 161, 91, 0.16);
    border-color: var(--hdl-tour-gold);
    outline: none;
}

.hdl-sample-banner__btn--primary {
    background: var(--hdl-tour-gold);
    border-color: var(--hdl-tour-gold);
    color: var(--hdl-tour-navy);
}

.hdl-sample-banner__btn--primary:hover,
.hdl-sample-banner__btn--primary:focus-visible {
    background: var(--hdl-tour-gold-soft);
    color: var(--hdl-tour-navy);
}

.hdl-sample-banner__spark { color: var(--hdl-tour-gold); }
.hdl-sample-banner__btn--tour:hover .hdl-sample-banner__spark,
.hdl-sample-banner__btn--tour:focus-visible .hdl-sample-banner__spark { color: #fff; }

/* Previous / Next navigation on the right of the banner card. */
.hdl-sample-banner__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
}

.hdl-sample-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(198, 161, 91, 0.55);
    background: transparent;
    color: #F8FAFC;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hdl-sample-nav-link:hover,
.hdl-sample-nav-link:focus-visible {
    background: rgba(198, 161, 91, 0.16);
    border-color: var(--hdl-tour-gold);
    outline: none;
}

.hdl-sample-nav-link span { color: var(--hdl-tour-gold); font-weight: 800; }

/* The report's own brand bar stays visible on sample pages: it now carries the
   fed brand (logo, photo, name, byline) of the current business/admin viewer
   (or the demo brand), so it is the report's agent identity, not duplicate site
   chrome. The home-page nav (hdl_sample_topnav) is the site header above it. */

@media (max-width: 720px) {
    .hdl-sample-banner__inner { align-items: flex-start; flex-direction: column; }
    .hdl-sample-banner__lead { width: 100%; }
    .hdl-sample-banner__nav { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------------------
   Guided tour overlay
--------------------------------------------------------------------------- */
.hdl-tour-root { position: fixed; inset: 0; z-index: 9000; }
.hdl-tour-root[hidden] { display: none; }

.hdl-tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
}

/* Spotlight: a transparent box with a huge outer shadow that darkens
   everything except the highlighted element. */
.hdl-tour-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.6);
    outline: 2px solid var(--hdl-tour-gold);
    outline-offset: 3px;
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
    pointer-events: none;
}

.hdl-tour-spotlight--novoid { box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.72); outline: none; }

.hdl-tour-tip {
    position: absolute;
    z-index: 9001;
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    color: var(--hdl-tour-navy);
    border-radius: 14px;
    border-top: 4px solid var(--hdl-tour-gold);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    padding: 18px 18px 14px;
    box-sizing: border-box;
}

.hdl-tour-tip__count {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hdl-tour-gold);
}

.hdl-tour-tip__title {
    margin: 6px 0 8px;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--hdl-tour-navy);
}

.hdl-tour-tip__body { margin: 0; font-size: 0.92rem; line-height: 1.55; color: #334155; }

.hdl-tour-tip__watch {
    margin: 10px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #7c5b16;
    background: rgba(198, 161, 91, 0.14);
    border-left: 3px solid var(--hdl-tour-gold);
    border-radius: 0 8px 8px 0;
    padding: 8px 10px;
}

.hdl-tour-tip__watch strong { color: #7c5b16; }

.hdl-tour-tip__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.hdl-tour-tip__spacer { flex: 1 1 auto; }

.hdl-tour-btn {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: #fff;
    color: var(--hdl-tour-navy);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.hdl-tour-btn:hover,
.hdl-tour-btn:focus-visible { background: rgba(15, 23, 42, 0.06); outline: none; }

.hdl-tour-btn:focus-visible { box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.5); }

.hdl-tour-btn--primary {
    background: var(--hdl-tour-navy);
    border-color: var(--hdl-tour-navy);
    color: #fff;
}

.hdl-tour-btn--primary:hover,
.hdl-tour-btn--primary:focus-visible { background: var(--hdl-tour-navy-soft); color: #fff; }

.hdl-tour-btn[disabled] { opacity: 0.4; cursor: default; }

.hdl-tour-tip__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.hdl-tour-tip__close:hover,
.hdl-tour-tip__close:focus-visible { background: rgba(15, 23, 42, 0.08); color: var(--hdl-tour-navy); outline: none; }

@media (max-width: 620px) {
    /* On small screens, pin the tooltip to the bottom for readability. */
    .hdl-tour-tip {
        left: 16px !important;
        right: 16px;
        top: auto !important;
        bottom: 16px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdl-tour-spotlight { transition: none; }
}
