/*
 * HGV247 wears the OperatorCompliance product-page layout in the colours of
 * hgv247.co.uk: a green-tinted ink and a hi-vis signal green.
 *
 * The signal green (#c8f02b) is far too light to carry white text or to be a
 * link colour on a white page, so it only appears where the ground is dark or
 * where the text on it is ink. Links and the one white-text button take a deep
 * olive from the same family instead (#4f6604, 6.5:1 against white).
 *
 * Loaded after operator-compliance.css. Every rule leads with the double class
 * so it outranks the base rule it replaces without resorting to !important.
 */

.fl-operator-compliance.fl-hgv247 {
    --oc-ink: #07110f;
    --oc-navy: #0c1916;
    --oc-operator-navy: #07110f;
    --oc-blue: #0c1916;
    --oc-blue-dark: #4f6604;
    --hgv-signal: #c8f02b;
    --hgv-signal-bright: #d8ff3e;
    --hgv-emergency: #c9321f;
}

/* The wordmark: ink letters with the 247 on a strip of hi-vis. */
.fl-operator-compliance.fl-hgv247 .oc-wordmark {
    color: var(--oc-ink);
    font-weight: 900;
}

.fl-operator-compliance.fl-hgv247 .oc-wordmark small {
    margin-left: 3px;
    padding: 1px 7px;
    border-radius: 5px;
    color: var(--oc-ink);
    background: var(--hgv-signal);
    font-weight: 900;
}

/* The example incident brief. */
.fl-operator-compliance.fl-hgv247 .oc-system-status {
    background: var(--hgv-signal);
    box-shadow: 0 0 0 4px rgba(200, 240, 43, 0.18);
}

.fl-operator-compliance.fl-hgv247 .oc-status--check {
    color: var(--hgv-emergency);
    background: #fff0ed;
}

.fl-operator-compliance.fl-hgv247 .oc-status-row--dark .oc-status-icon {
    border-color: #31413d;
    color: var(--hgv-signal);
    background: #172622;
}

.fl-operator-compliance.fl-hgv247 .oc-status-row--dark small {
    color: #9aa6a2;
}

.fl-operator-compliance.fl-hgv247 .oc-bell {
    border-color: var(--hgv-signal);
}

.fl-operator-compliance.fl-hgv247 .oc-bell::after {
    background: var(--hgv-signal);
}

/* Card icons are hard-coded in the base sheet, so they are repeated here. */
.fl-operator-compliance.fl-hgv247 .oc-card__icon--blue {
    color: var(--oc-blue-dark);
    background: #f2fad3;
}

.fl-operator-compliance.fl-hgv247 .oc-card__icon--navy {
    color: var(--hgv-signal);
    background: var(--oc-navy);
}

/* The dark audience band, in HGV247 ink rather than slate. */
.fl-operator-compliance.fl-hgv247 .oc-audience__lead,
.fl-operator-compliance.fl-hgv247 .oc-audience-list p,
.fl-operator-compliance.fl-hgv247 .oc-workflow p {
    color: #a9b5b1;
}

.fl-operator-compliance.fl-hgv247 .oc-audience-list a {
    color: var(--hgv-signal);
}

.fl-operator-compliance.fl-hgv247 .oc-audience-symbol--blue {
    color: var(--hgv-signal);
}

.fl-operator-compliance.fl-hgv247 .oc-workflow {
    background: rgba(23, 38, 34, 0.72);
}

.fl-operator-compliance.fl-hgv247 .oc-workflow > h3 {
    color: var(--hgv-signal-bright);
}

.fl-operator-compliance.fl-hgv247 .oc-workflow li > span {
    border-color: #31413d;
    color: var(--hgv-signal);
    background: #172622;
}

/* Buttons. Signal green always carries ink text, never white. */
.fl-operator-compliance.fl-hgv247 .oc-button--blue,
.fl-operator-compliance.fl-hgv247 .oc-final-cta .oc-button--white {
    color: var(--oc-ink);
    background: var(--hgv-signal);
}

.fl-operator-compliance.fl-hgv247 .oc-responsibility {
    border-left-color: var(--oc-blue-dark);
}

/* Where to start: three short link lists. */
.fl-operator-compliance.fl-hgv247 .hgv-quicklinks {
    border-top: 1px solid var(--oc-line);
    background: #ffffff;
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks__grid > div {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: var(--oc-canvas);
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks h3 {
    margin-bottom: 16px;
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks a {
    color: var(--oc-ink);
    font-weight: 750;
    line-height: 1.45;
    text-decoration: underline;
    text-decoration-color: var(--hgv-signal);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    transition: text-decoration-color 160ms ease;
}

.fl-operator-compliance.fl-hgv247 .hgv-quicklinks a:focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--oc-blue-dark);
    outline-offset: 3px;
}

@media (hover: hover) {
    .fl-operator-compliance.fl-hgv247 .oc-button--blue:hover,
    .fl-operator-compliance.fl-hgv247 .oc-final-cta .oc-button--white:hover {
        background: var(--hgv-signal-bright);
    }

    .fl-operator-compliance.fl-hgv247 .oc-button--blue-dark:hover {
        background: #3f5203;
    }

    .fl-operator-compliance.fl-hgv247 .hgv-quicklinks a:hover {
        text-decoration-color: var(--oc-blue-dark);
    }
}

@media (max-width: 740px) {
    .fl-operator-compliance.fl-hgv247 .hgv-quicklinks__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fl-operator-compliance.fl-hgv247 .hgv-quicklinks__grid > div {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl-operator-compliance.fl-hgv247 .hgv-quicklinks a {
        transition: none;
    }
}
