/* ============================================================
   Methodology page — AI-readiness arbitration
   Reuses master.css design tokens (works in dark & light themes)
   ============================================================ */

/* --- hero meta --- */
.mth-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    margin-top: 1.4rem;
    color: var(--clr-muted);
    font-size: 0.875rem;
    font-weight: 600;
}
.mth-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--clr-primary-2);
    display: inline-block;
}

/* --- sticky side nav --- */
.mth-nav {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 18px;
    padding: 16px;
}
.mth-nav-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-muted);
    padding: 4px 10px 8px;
}
.mth-nav-link {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--clr-muted);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}
.mth-nav-link:hover {
    color: var(--clr-text);
    background: var(--clr-white-hover);
}
.mth-nav-link.active {
    color: var(--clr-primary-2);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.22);
}

/* --- sections --- */
.mth-section {
    scroll-margin-top: 100px;
    padding-bottom: 2.6rem;
    margin-bottom: 2.6rem;
    border-bottom: 1px solid var(--clr-border);
}
.mth-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.mth-lead {
    color: var(--clr-muted);
    line-height: 2;
    font-size: 1rem;
    margin-bottom: 1.8rem;
}
.mth-subtitle {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--clr-text);
    margin: 0.4rem 0 1rem;
}

/* --- principles --- */
.mth-principle {
    position: relative;
    padding: 22px 20px 20px;
    text-align: start;
}
.mth-principle-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-2));
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}
.mth-principle h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 8px;
}
.mth-principle p {
    color: var(--clr-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0;
}

/* --- axes --- */
.mth-axis {
    text-align: center;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 18px 12px;
    height: 100%;
}
.mth-axis i {
    font-size: 1.5rem;
    color: var(--clr-accent);
}
.mth-axis-name {
    font-weight: 800;
    color: var(--clr-text);
    margin-top: 8px;
}
.mth-axis-count {
    font-size: 0.8rem;
    color: var(--clr-muted);
    margin-top: 2px;
}

/* --- steps / checklists --- */
.mth-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mth-steps li {
    position: relative;
    counter-increment: step;
    padding: 10px 44px 10px 4px;
    color: var(--clr-muted);
    line-height: 1.8;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--clr-border);
}
.mth-steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--clr-primary-2);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mth-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mth-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    color: var(--clr-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}
.mth-checklist li i {
    color: var(--clr-green-text);
    margin-top: 4px;
    flex-shrink: 0;
}
.mth-checklist-amber li i {
    color: var(--clr-amber-text);
}

/* --- common errors --- */
.mth-error {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 16px 18px;
    height: 100%;
    border-top: 3px solid var(--clr-amber);
}
.mth-error h6 {
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 6px;
}
.mth-error p {
    color: var(--clr-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* ============ reviewers ============ */
.mth-reviewer {
    --accent: var(--clr-primary);
    position: relative;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-inline-start: 4px solid var(--accent);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 22px;
}
.accent-emerald { --accent: #10b981; }
.accent-indigo  { --accent: #6366f1; }
.accent-rose    { --accent: #f43f5e; }
.accent-amber   { --accent: #f59e0b; }

.mth-reviewer-head {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.mth-avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
}
.mth-reviewer-id { flex: 1; min-width: 220px; }
.mth-reviewer-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mth-honorific { color: var(--accent); }
.mth-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 20px;
    padding: 3px 12px;
}
.mth-reviewer-tagline {
    color: var(--clr-muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}
.mth-reviewer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--clr-muted);
}
.mth-reviewer-summary {
    color: var(--clr-muted);
    line-height: 1.9;
    font-size: 0.92rem;
    margin: 18px 0 14px;
}
.mth-cv-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 16px 18px;
    height: 100%;
}
.mth-cv-block h5 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 10px;
}
.mth-cv-block h5 i { color: var(--accent); }
.mth-cv-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mth-cv-block li {
    position: relative;
    padding: 6px 16px 6px 0;
    color: var(--clr-muted);
    font-size: 0.85rem;
    line-height: 1.75;
}
.mth-cv-block li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============ results ============ */
.mth-stat {
    text-align: center;
    background: linear-gradient(160deg, var(--clr-card), var(--clr-surface));
    border: 1px solid var(--clr-border);
    border-radius: 18px;
    padding: 22px 14px;
    height: 100%;
}
.mth-stat-num {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--clr-primary-2), var(--clr-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mth-stat-lbl {
    font-weight: 700;
    color: var(--clr-text);
    font-size: 0.9rem;
    margin-top: 10px;
}
.mth-stat-note {
    color: var(--clr-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.mth-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    margin-bottom: 1.8rem;
}
.mth-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.mth-table th,
.mth-table td {
    padding: 14px 18px;
    text-align: start;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--clr-border);
}
.mth-table th {
    background: var(--clr-white-hover);
    color: var(--clr-text);
    font-weight: 800;
}
.mth-table td {
    color: var(--clr-muted);
}
.mth-table tbody tr:last-child td {
    border-bottom: none;
}
.mth-badge-ok {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-green-text);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
}
.mth-badge-wait {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-amber-text);
    background: rgba(245, 158, 11, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
}

/* --- distribution --- */
.mth-dist {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.mth-dist-bar {
    height: 8px;
    border-radius: 20px;
    background: var(--clr-white-hover);
    overflow: hidden;
}
.mth-dist-bar span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}
.mth-dist-name {
    font-weight: 700;
    color: var(--clr-text);
    font-size: 0.88rem;
    margin-top: 10px;
}
.mth-dist-count {
    color: var(--clr-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* --- approval banner --- */
.mth-approval {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 20px;
    padding: 26px;
    margin-top: 1.6rem;
}
.mth-approval-icon i {
    font-size: 2.2rem;
    color: var(--clr-green-text);
}
.mth-approval-body h4 {
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.mth-approval-body p {
    color: var(--clr-muted);
    line-height: 1.9;
    font-size: 0.92rem;
    margin: 0;
}
.mth-approval-body strong {
    color: var(--clr-text);
}

/* --- responsive --- */
@media (max-width: 991px) {
    .mth-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 1.2rem;
    }
    .mth-nav-title { width: 100%; }
    .mth-nav-link { flex: 1; justify-content: center; min-width: 140px; }
}
@media (max-width: 575px) {
    .mth-reviewer { padding: 20px 16px; }
    .mth-approval { flex-direction: column; gap: 10px; }
}
