/* ═══════════════════════════════════════════════
   Forex Article Header — forex-article-header.css
   Version 2.1.0 — light mode, --fdhf-* tokens
   Colours controlled from the ForexDaily header :root
   ═══════════════════════════════════════════════
   Token quick-reference (from header CSS):
     --fdhf-ink-3     #FAFAFA   card / panel backgrounds
     --fdhf-ink-4     #F0F0F0   subtle fills
     --fdhf-line      #E2E2E2   borders & dividers
     --fdhf-white     #1A1A2E   headings / strong text
     --fdhf-cream     #374151   body text
     --fdhf-silver    #6B7280   muted / secondary text
     --fdhf-brand     #E8B84B   gold accent
     --fdhf-brand-2   #D4991E   darker gold (hover)
     --fdhf-brand-dim rgba(232,184,75,.10)  tinted gold fill
     --fdhf-shadow    0 2px 16px rgba(0,0,0,.08)
*/

/* ── Wrapper ── */
.fah-wrapper {
    margin-bottom: 2rem;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Breadcrumbs row — flex with affiliate icon ── */
.fah-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

/* ── Breadcrumbs ── */
.fah-breadcrumbs {
    flex: 1;
    min-width: 0;
}

.page .fah-breadcrumbs {
    margin-bottom: 0;
}

.fah-breadcrumbs .rank-math-breadcrumb,
.fah-breadcrumbs .rank-math-breadcrumb p {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    font-size: 11.5px;
    color: var(--fdhf-silver, #6B7280);
    line-height: 1.4;
    letter-spacing: 0.01em;
    overflow: hidden;
    min-width: 0;
}

.fah-breadcrumbs .rank-math-breadcrumb a {
    color: var(--fdhf-silver, #6B7280);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.fah-breadcrumbs .rank-math-breadcrumb a:hover {
    color: var(--fdhf-brand, #E8B84B);
    text-decoration: none;
}

.fah-breadcrumbs .rank-math-breadcrumb .separator {
    color: var(--fdhf-line, #E2E2E2);
    margin: 0 1px;
    flex-shrink: 0;
}

.fah-breadcrumbs .rank-math-breadcrumb span:last-child {
    color: var(--fdhf-cream, #374151);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

/* ── Badge row ── */
.fah-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0px 12px 0px;
    position: relative;
}

/* ── Category Badge (pill) ── */
.fah-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgb(255 255 255);
    border: 0px solid rgb(233 233 233);
    border-radius: 5px;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--fdhf-brand-2, #ffffff);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s;
}

.fah-category-badge:hover {
    background: rgb(255 255 255);
    color: var(--fdhf-brand-2, #000000);
    text-decoration: none;
}

.fah-badge-dot {
    display: none;
}

/* ── Traders Choice Badge (pill) ── */
.fah-traders-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border-radius: 5px;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--fdhf-brand-2, #6268f9);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1;
}

.fah-trophy-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* ── Affiliate Disclosure ── */
.fah-affiliate-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.fah-affiliate-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fdhf-ink-4, #F0F0F0);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fdhf-silver, #6B7280);
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
	margin-left: 5px;
}

.fah-affiliate-icon svg {
    width: 11px;
    height: 11px;
}

.fah-affiliate-icon:hover,
.fah-affiliate-icon:focus {
    border-color: var(--fdhf-brand, #E8B84B);
    color: var(--fdhf-brand, #E8B84B);
    outline: none;
}

.fah-aff-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 36px;
    width: 270px;
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 8px;
    padding: 14px 16px;
    z-index: 999;
    box-shadow: var(--fdhf-shadow, 0 2px 16px rgba(0,0,0,.08));
}

.fah-aff-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 11px;
    width: 10px;
    height: 10px;
    background: var(--fdhf-ink-3, #FAFAFA);
    border-left: 1px solid var(--fdhf-line, #E2E2E2);
    border-top: 1px solid var(--fdhf-line, #E2E2E2);
    transform: rotate(45deg);
}

.fah-affiliate-wrap:hover .fah-aff-tooltip,
.fah-affiliate-icon:focus + .fah-aff-tooltip {
    display: block;
}

.fah-aff-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--fdhf-silver, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 7px;
}

.fah-aff-text {
    font-size: 12px;
    color: var(--fdhf-cream, #374151);
    line-height: 1.65;
    margin: 0;
}

.fah-aff-text a {
    color: var(--fdhf-brand, #E8B84B);
    text-decoration: none;
}

.fah-aff-text a:hover {
    text-decoration: underline;
}

/* ── Title ── */
.fah-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(17px, 3.6vw, 28px);
    font-weight: 700;
    color: var(--fdhf-white, #1A1A2E);
    line-height: 1.28;
    margin: 0 0 9px;
    padding: 0;
    letter-spacing: -0.015em;
}

/* ── Meta Line (flat, no box) ── */
.fah-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 11px;
    color: var(--fdhf-silver, #6B7280);
    line-height: 1;
    border-top: 1px solid var(--fdhf-ink-4, #F0F0F0);
    padding: 8px;
	background: #ffffff;
}

/* ── Updated badge ── */
.fah-updated-badge {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(232,184,75,0.12);
    color: var(--fdhf-brand-2, #D4991E);
    border-radius: 20px;
    padding: 2px 7px;
    margin-right: 4px;
}

.fah-meta-author-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fah-author {
    font-weight: 600;
    color: var(--fdhf-cream, #374151);
    text-decoration: none;
    transition: color 0.15s;
}

.fah-author:hover {
    color: var(--fdhf-brand, #E8B84B);
    text-decoration: none;
}

/* Dot separator between meta segments */
.fah-meta-sep {
    display: inline-block;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--fdhf-silver, #6B7280);
    opacity: 0.4;
    margin: 0 7px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Date segments */
.fah-date,
.fah-date-updated {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--fdhf-silver, #6B7280);
    line-height: 1;
}

/* "Published" label — only shown when an Updated date is also present */
.fah-date-label {
    font-weight: 500;
    color: var(--fdhf-silver, #6B7280);
    opacity: 0.75;
}



.fah-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: var(--fdhf-silver, #6B7280);
}

/* Read time inline */
.fah-read-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--fdhf-silver, #6B7280);
}

/* ── Divider ── */
.fah-divider {
    border: none;
    border-top: 1px solid var(--fdhf-line, #E2E2E2);
    margin: 14px 0 0;
}

/* ── Updated badge ── */
.fah-updated-badge {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgb(75 81 254 / 9%);
    color: var(--fdhf-brand-2, #D4991E);
    border-radius: 20px;
    padding: 3px 7px;
    margin-right: 4px;
}

/* ── Page Header — title row ── */
.fah-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.fah-title-row .fah-title {
    margin-bottom: 0;
    flex: 1;
}

.fah-title-row .fah-affiliate-wrap {
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .fah-meta-line {
        gap: 0;
        row-gap: 6px;
    }

    .fah-written-by-label,
    .fah-date-label {
        display: none;
    }

    .fah-title {
        font-size: 20px;
    }

    .fah-affiliate-wrap {
        margin-left: 0;
    }

    .fah-aff-tooltip {
        right: -8px;
        left: auto;
        width: min(270px, calc(100vw - 32px));
        transform: none;
    }

    .fah-aff-tooltip::before {
        right: 14px;
        left: auto;
    }
}
