/* Methodology & Standards – advisor + landing */

.af-overlay {
    position: fixed;
    inset: 0;
    z-index: 215000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.af-overlay[hidden] {
    display: none !important;
}

.af-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.af-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(90vh, 860px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
}

.af-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.af-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0a192f;
}

.af-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    padding: 0.35rem;
    flex-shrink: 0;
}

.af-dialog__close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.af-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.af-dialog__footer {
    flex-shrink: 0;
    padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.af-dialog__btn {
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: #0a192f;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.af-panel__intro {
    margin: 0 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
}

.af-panel__block {
    margin-bottom: 1.35rem;
}

.af-panel__h3 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0a192f;
}

.af-panel__independence {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.af-panel__independence p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
}

.af-ref-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .af-ref-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.af-ref-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    background: #fff;
}

.af-ref-card__title {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a192f;
    line-height: 1.35;
}

.af-ref-card__body {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #475569;
}

.af-ref-card__keywords {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
}

.af-ref-card__note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
    font-style: italic;
}

.af-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.af-flow__step {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #fff;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #334155;
    text-align: center;
}

.af-flow__step--core {
    background: #0a192f;
    border-color: #0a192f;
    color: #fff;
}

.af-flow__step--sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.45rem;
}

.af-flow__chip {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0a192f;
}

.af-flow__plus {
    color: #94a3b8;
    font-weight: 700;
}

.af-flow__arrow {
    text-align: center;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
}

.af-dim-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.af-dim-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.af-dim-item__num {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0a192f;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.af-dim-item__name {
    display: block;
    font-size: 0.82rem;
    color: #0a192f;
    margin-bottom: 0.15rem;
}

.af-dim-item__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
}

.af-maturity {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.af-maturity li {
    font-size: 0.78rem;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.af-maturity__lvl {
    font-weight: 700;
    color: #0a192f;
}

.af-panel__note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

.af-sources {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.8rem;
    line-height: 1.55;
}

.af-sources a {
    color: #2563eb;
}

.af-panel__disclaimer {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #94a3b8;
}

/* Welcome accordion */
.af-welcome-notice {
    margin-top: 1rem;
    width: 100%;
    max-width: 28rem;
    text-align: left;
}

.af-welcome-notice__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.af-welcome-notice__chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.af-welcome-notice.is-open .af-welcome-notice__chevron {
    transform: rotate(180deg);
}

.af-welcome-notice__panel {
    margin-top: 0.45rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.af-welcome-notice__panel[hidden] {
    display: none !important;
}

.af-welcome-notice__text {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #64748b;
}

.af-welcome-notice__link,
.af-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0a192f;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.af-trigger-btn--ghost {
    border: none;
    background: transparent;
    color: #2563eb;
    text-decoration: underline;
    min-height: 44px;
    padding: 0.25rem 0.35rem;
}

/* Landing trust section */
.advisor-methodology {
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.advisor-methodology__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    color: var(--color-navy, #0a192f);
}

.advisor-methodology__intro {
    margin: 0 0 1.25rem;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.advisor-methodology__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .advisor-methodology__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .advisor-methodology__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.advisor-methodology__card {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius, 10px);
    padding: 0.9rem 1rem;
    background: #fff;
}

.advisor-methodology__card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-navy, #0a192f);
    margin-bottom: 0.25rem;
}

.advisor-methodology__card span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.advisor-methodology__combined {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy, #0a192f);
}

.advisor-methodology__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-navy, #0a192f);
    background: transparent;
    color: var(--color-navy, #0a192f);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.advisor-methodology__cta:hover {
    background: #f8fafc;
}

.af-report-badge {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
}

.af-report-badge__heading {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.af-report-badge__name {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a192f;
}

.af-report-badge__inspired {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #64748b;
}

@media (max-width: 768px) {
    .af-overlay {
        padding: 0;
        align-items: stretch;
    }

    .af-dialog {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
}
