/* High Authority Backlinks — page-specific visual system */
.authority-hero-card {
    background: linear-gradient(145deg, #211c39 0%, #30284f 100%);
}

.authority-scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.authority-score {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.065);
}

.authority-score b {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
}

.authority-score span {
    color: rgba(255,255,255,.74);
    font-size: 16px;
    line-height: 1.5;
}

.authority-score--wide { grid-column: 1 / -1; }

.metric-explainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--bw-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--bw-shadow-soft);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bw-orange);
}

.metric-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.metric-card__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid rgba(255,79,1,.28);
    border-radius: 9px;
    background: var(--bw-soft-orange);
    color: var(--bw-orange);
    font-size: 22px;
    font-weight: 800;
}

.metric-card__head h3 { margin: 0 0 2px; }
.metric-card__head p,
.metric-card > p { margin-bottom: 0; color: var(--bw-muted); }

.authority-layers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    border: 1px solid var(--bw-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bw-shadow-soft);
}

.authority-layer {
    position: relative;
    min-height: 245px;
    padding: 28px 24px;
    border-right: 1px solid var(--bw-border);
}

.authority-layer:last-child { border-right: 0; }

.authority-layer__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,79,1,.28);
    border-radius: 6px;
    color: var(--bw-orange);
    background: #fff8f4;
    font-weight: 700;
}

.authority-layer h3 { margin-bottom: 10px; font-size: 22px; }
.authority-layer p { margin: 0; color: var(--bw-muted); }

.approval-pipeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 14px;
    align-items: stretch;
}

.approval-step {
    position: relative;
    min-height: 210px;
    padding: 24px 20px;
    border: 1px solid var(--bw-border);
    border-top: 3px solid var(--bw-orange);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--bw-shadow-soft);
}

.approval-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -19px;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--bw-orange);
    font-weight: 800;
}

.approval-step span {
    display: block;
    margin-bottom: 14px;
    color: var(--bw-orange);
    font-size: 16px;
    font-weight: 700;
}

.approval-step h3 { margin-bottom: 8px; font-size: 20px; }
.approval-step p { margin: 0; color: var(--bw-muted); font-size: 16px; }

.authority-use-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.authority-use {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--bw-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--bw-shadow-soft);
}

.authority-use__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--bw-navy);
    color: #fff;
    font-weight: 800;
}

.authority-use h3 { margin-bottom: 6px; }
.authority-use p { margin: 0; color: var(--bw-muted); }

.authority-structure {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.authority-structure__card {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 24px;
    border: 1px solid var(--bw-border);
    border-radius: 9px;
    background: #fff;
}

.authority-structure__card--accent {
    border-color: rgba(255,79,1,.38);
    background: #fff8f4;
}

.authority-structure__card--dark {
    border-color: var(--bw-navy);
    background: var(--bw-navy);
    color: #fff;
}

.authority-structure__card--dark h3,
.authority-structure__card--dark a { color: #fff; }
.authority-structure__card--dark p { color: rgba(255,255,255,.76); }

.authority-structure__label {
    margin-bottom: 12px;
    color: var(--bw-orange);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.authority-structure__card h3 { margin-bottom: 10px; }
.authority-structure__card p { flex: 1; color: var(--bw-muted); }
.authority-structure__card a { font-weight: 700; text-decoration: none; }

.authority-report {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 42px;
    align-items: center;
}

.report-preview {
    border: 1px solid var(--bw-border);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--bw-shadow-soft);
}

.report-preview__head {
    display: grid;
    grid-template-columns: 1.3fr .75fr .75fr .65fr;
    gap: 0;
    padding: 14px 16px;
    background: var(--bw-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.report-preview__row {
    display: grid;
    grid-template-columns: 1.3fr .75fr .75fr .65fr;
    align-items: center;
    min-height: 52px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--bw-border);
    font-size: 16px;
}

.report-preview__row:last-child { border-bottom: 0; }
.report-preview__row span:not(:first-child) { text-align: center; }
.report-preview__status { color: #17864b; font-weight: 700; }

.authority-note-list {
    display: grid;
    gap: 13px;
    margin-top: 24px;
}

.authority-note {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.authority-note span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--bw-soft-orange);
    color: var(--bw-orange);
    font-weight: 800;
}
.authority-note p { margin: 2px 0 0; }

@media (max-width: 980px) {
    .authority-layers { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .authority-layer:nth-child(2) { border-right: 0; }
    .authority-layer:nth-child(-n+2) { border-bottom: 1px solid var(--bw-border); }
    .approval-pipeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .approval-step:not(:last-child)::after { display: none; }
    .authority-structure { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .authority-report { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .authority-scoreboard,
    .metric-explainer,
    .authority-layers,
    .approval-pipeline,
    .authority-use-grid,
    .authority-structure { grid-template-columns: 1fr; }

    .authority-score--wide { grid-column: auto; }
    .authority-layer {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--bw-border);
    }
    .authority-layer:last-child { border-bottom: 0; }
    .authority-layer:nth-child(2) { border-right: 0; }
    .approval-step { min-height: auto; }
    .authority-use { grid-template-columns: 46px 1fr; padding: 22px; }
    .authority-use__icon { width: 46px; height: 46px; }

    .report-preview__head {
        display: none;
    }
    .report-preview__row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        padding: 16px;
    }
    .report-preview__row span {
        text-align: left !important;
    }
    .report-preview__row span::before {
        display: block;
        margin-bottom: 2px;
        color: var(--bw-muted);
        font-size: 14px;
        font-weight: 600;
    }
    .report-preview__row span:nth-child(1)::before { content: "Source"; }
    .report-preview__row span:nth-child(2)::before { content: "Moz DA"; }
    .report-preview__row span:nth-child(3)::before { content: "Ahrefs DR"; }
    .report-preview__row span:nth-child(4)::before { content: "Status"; }
}
