/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: var(--fhv-text, #333333);
}

/* ── App shell: sidebar left + main right ─────────────────────────────────── */
.fhv-app {
    display: flex;
    min-height: 100vh;
}

/* ── Embed mode (iframe) ──────────────────────────────────────────────────── */
.fhv-app--embed {
    min-height: auto;
}

.fhv-embed-body {
    background: transparent;
}

.fhv-app--embed .fhv-main {
    background: transparent;
}

.fhv-app--embed .fhv-content-body {
    padding: 1rem;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.fhv-sidebar {
    width: 72px;
    background: var(--fhv-sidebar, #003063);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    z-index: 200;
}

.fhv-sidebar__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fhv-sidebar__icon svg {
    width: 44px;
    height: 44px;
    fill: var(--fhv-logo, #be0000);
    display: block;
}

/* ── Main area ───────────────────────────────────────────────────────────── */
.fhv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

/* ── Content header bar ──────────────────────────────────────────────────── */
.fhv-content-header {
    background: var(--fhv-header-bg, #ffffff);
    border-bottom: 1px solid var(--fhv-header-border, #dddddd);
    padding: 0.9rem 2rem;
}

.fhv-claim {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none !important;
    line-height: 1;
}

.fhv-claim__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fhv-header-text, #003063);
    letter-spacing: 0.02em;
    line-height: 1;
}

.fhv-claim__subtitle {
    font-size: 0.68rem;
    color: var(--fhv-header-text, #003063);
    opacity: 0.65;
    line-height: 1.3;
    margin-top: 2px;
}

/* ── Hero / header image ─────────────────────────────────────────────────── */
.fhv-hero {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    position: relative;
}

.fhv-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.fhv-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
}

.fhv-hero__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.fhv-hero__subtitle {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* ── Content body ────────────────────────────────────────────────────────── */
.fhv-content-body {
    flex: 1;
    padding: 2rem;
    background: var(--fhv-content-bg, #f8f8f8);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.fhv-footer {
    background: var(--fhv-footer-bg, #003063);
    color: var(--fhv-footer-text, #ffffff);
    padding: 1.75rem 2rem;
    position: relative;
}

.fhv-footer__nav {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.fhv-footer__nav a {
    color: var(--fhv-footer-text, #ffffff);
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.82rem;
    transition: opacity .15s;
}

.fhv-footer__nav a:hover {
    opacity: 1;
}

.fhv-footer__logo {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
}

.fhv-footer__logo svg {
    width: 36px;
    height: 36px;
    fill: var(--fhv-footer-text, #ffffff);
    opacity: 0.25;
}

.fhv-footer__copyright {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.75;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fhv-app { flex-direction: column; }

    .fhv-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.6rem 1rem;
        position: sticky;
        top: 0;
        gap: 0.75rem;
    }

    .fhv-sidebar__icon svg { width: 32px; height: 32px; }

    .fhv-content-body { padding: 1rem; }
    .fhv-content-header { padding: 0.75rem 1rem; }
    .fhv-hero img { height: 200px; }

    .fhv-footer { padding: 1.25rem 1rem; }
    .fhv-footer__logo { position: static; margin-top: 1rem; }

    /* Touch targets ≥ 48px for mobile (Lighthouse / WCAG 2.5.8) */
    .fhv-user-nav a,
    .fhv-user-nav button {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
