/* ============================================================
   RESOURCE VAULT — COMPONENTS CSS
   ============================================================ */

/* ── FALLBACK MENU ───────────────────────────────────────── */
.fallback-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.fallback-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4A4540;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fallback-nav a:hover {
    color: var(--color-teal);
}

/* ── SINGLE POST / PAGE ──────────────────────────────────── */
.entry-content {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--color-text);
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.entry-content h3 {
    font-size: 1.2rem;
    margin-top: 1.75em;
    margin-bottom: 0.6em;
}

.entry-content p {
    margin-bottom: 1.25em;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 1.25em 1.5em;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content a {
    color: var(--color-teal);
    text-decoration: underline;
    text-decoration-color: rgba(45,125,125,0.3);
}

.entry-content a:hover {
    text-decoration-color: var(--color-teal);
}

.entry-content blockquote {
    border-left: 3px solid var(--color-teal);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(45,125,125,0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #1A1814;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.875rem;
}

.entry-content th {
    background: #F2EFE9;
    color: var(--color-teal-dark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(45,125,125,0.20);
}

.entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #EDE8DF;
    color: #1A1814;
}

.entry-content tr:nth-child(even) td {
    background: #F9F7F4;
}

/* ── VIDEO EMBED ─────────────────────────────────────────── */
.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    background: #F2EFE9;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── PDF DOWNLOAD BUTTON ─────────────────────────────────── */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(45,125,125,0.08);
    border: 1px solid rgba(45,125,125,0.25);
    border-radius: var(--radius-sm);
    color: var(--color-teal);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 24px;
}

.pdf-download-btn:hover {
    background: rgba(45,125,125,0.15);
    color: var(--color-teal-light);
    transform: translateY(-2px);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #EDE8DF;
    color: #4A4540;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #FFFFFF;
}

/* ── SEARCH FORM ─────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #DDD8CE;
    border-radius: var(--radius-sm);
    color: #1A1814;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--color-teal);
}

.search-form button {
    padding: 10px 16px;
    background: var(--color-teal);
    border: none;
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--color-teal-light);
}

/* ── WIDGETS ─────────────────────────────────────────────── */
.widget {
    margin-bottom: 24px;
}

.widget-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-teal);
    padding: 20px 28px 0;
    margin-bottom: 16px;
}

.widget ul {
    padding: 0 28px 20px;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #EDE8DF;
    font-size: 0.875rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #4A4540;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--color-teal);
}

/* ── NOTICE / DISCLAIMER BOX ─────────────────────────────── */
.disclaimer-box {
    padding: 16px 20px;
    background: #F9F7F4;
    border: 1px solid #EDE8DF;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: #6B6560;
    line-height: 1.7;
    font-style: italic;
    margin-top: 32px;
}

.disclaimer-box strong {
    color: #4A4540;
    font-style: normal;
}

/* ── 404 PAGE ────────────────────────────────────────────── */
.error-404-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.error-404-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-teal);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.4;
}

.error-404-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.error-404-text {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ── LOADING SKELETON ────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #F2EFE9 25%, #E8E3DA 50%, #F2EFE9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: rgba(45,125,125,0.15);
    border: 1px solid rgba(45,125,125,0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(45,125,125,0.25);
    transform: translateY(-3px);
}

/* ── PRINT STYLES ────────────────────────────────────────── */
@media print {
    .site-header,
    .site-footer,
    .company-tabs-bar,
    .back-to-top { display: none !important; }

    body {
        background: white;
        color: black;
    }

    .entry-content {
        color: black;
    }
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.rv-empty-state {
    padding: 60px 40px;
    text-align: center;
    background: #F9F7F4;
    border: 1px solid #EDE8DF;
    border-radius: 8px;
}

.rv-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,125,125,0.07);
    border: 1px solid rgba(45,125,125,0.18);
    border-radius: 50%;
    color: #A89E94;
}

.rv-empty-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.rv-empty-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
}

.rv-empty-text strong {
    color: #777;
}

/* ── TAB COUNT BADGE ─────────────────────────────────────── */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(45,125,125,0.15);
    border: 1px solid rgba(45,125,125,0.3);
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-teal);
    font-family: var(--font-mono);
    line-height: 1;
}

/* ── TAB JUMP BUTTONS (Overview → tab links) ─────────────── */
.tab-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--color-text);
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
    font-family: var(--font-body);
    text-decoration: none;
}

.tab-jump-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

/* ── SIDEBAR LINK BTN AS BUTTON ──────────────────────────── */
button.sidebar-link-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: transparent;
    font-family: var(--font-body);
}

/* ── KEAP / INFUSIONSOFT FORM — styled to match site design ── */
.rv-keap-form-wrap {
    width: 100%;
}
.rv-keap-form {
    margin: 0;
    height: auto !important;
}
.rv-keap-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.rv-keap-email {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 260px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}
.rv-keap-email::placeholder {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}
.rv-keap-email:focus {
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.20);
}
.rv-keap-btn {
    flex-shrink: 0;
    padding: 9px 20px;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #C9A84C;
    color: #1A1814;
    border: 2px solid #C9A84C;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.rv-keap-btn:hover {
    background: #B8943D;
    border-color: #B8943D;
    transform: translateY(-1px);
}
.rv-keap-btn:active {
    transform: scale(0.97);
}
/* Hide Keap's default table-based layout — we use our own row */
.rv-keap-form .infusion-field-container,
.rv-keap-form .infusion-field-label-container,
.rv-keap-form .infusion-field-input-container,
.rv-keap-form table.background,
.rv-keap-form table.bodyContainer,
.rv-keap-form .simple,
.rv-keap-form .beta-base {
    display: none !important;
}
/* But always show our custom row */
.rv-keap-form .rv-keap-row {
    display: flex !important;
}
#webformErrors {
    color: #ffcccc;
    font-size: 0.85rem;
    margin-bottom: 8px;
    min-height: 0;
}
