/* ─────────────────────────────────────────────────────────────────────────────
   Compliance page (/compliance) — Compliance.razor. Hero = Who We Are hero (.nf-wwp-hero*).
   Navy + orange site theme; tokens from nikalas-theme.css (--nfd-*).
   ───────────────────────────────────────────────────────────────────────────── */

.nf-cp { background: var(--nfd-bg-soft, #F5F8FD); }
.nf-cp .nfd-container { max-width: 1040px; }

/* ── Registration badges ── */
.rioc-app ul.nf-cp-badges {
    list-style: none;
    margin: 0 0 clamp(24px, 3vw, 36px);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.nf-cp-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--nfd-line, #E3E9F2);
    border-radius: 16px;
    box-shadow: 0 10px 24px -20px rgba(16, 47, 101, .5);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nf-cp-badge:hover { transform: translateY(-3px); border-color: rgba(255, 121, 0, .45); box-shadow: 0 18px 32px -22px rgba(16, 47, 101, .55); }
.nf-cp-badge__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--nfd-orange-tint, #FFF2E5);
    color: var(--nfd-orange, #FF7900);
}
.nf-cp-badge__icon svg { width: 24px; height: 24px; }
.nf-cp-badge__text { display: flex; flex-direction: column; min-width: 0; text-transform: none; }
.nf-cp-badge__text strong { font-size: 16px; font-weight: 700; color: var(--nfd-navy, #102F65); line-height: 1.25; }
.nf-cp-badge__text span { font-size: 13px; color: var(--nfd-muted, #64748B); overflow-wrap: anywhere; }

/* ── Statutory card ── */
.nf-cp-card {
    background: #fff;
    border: 1px solid var(--nfd-line, #E3E9F2);
    border-top: 4px solid var(--nfd-orange, #FF7900);
    border-radius: 22px;
    box-shadow: 0 30px 60px -36px rgba(16, 47, 101, .45);
    overflow: hidden;
}
.nf-cp-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: clamp(20px, 2.6vw, 30px) clamp(18px, 3vw, 36px);
    border-bottom: 1px solid var(--nfd-line, #E3E9F2);
}
.nf-cp-card__mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--nfd-navy, #102F65), #1D4A8F);
    color: #fff;
}
.nf-cp-card__mark svg { width: 28px; height: 28px; }
.rioc-app h2.nf-cp-card__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--nfd-navy, #102F65); text-transform: none; }
.rioc-app p.nf-cp-card__sub { margin: 4px 0 0; font-size: 14.5px; color: var(--nfd-muted, #64748B); text-transform: none; }

.nf-cp-list { margin: 0; }
.nf-cp-row {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    border-bottom: 1px solid #EEF2F8;
    transition: background-color .2s ease;
}
.nf-cp-row:last-child { border-bottom: 0; }
.nf-cp-row:nth-child(even) { background: #F8FAFD; }
.nf-cp-row:hover { background: #FFF8F1; }

.nf-cp-row__label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px clamp(16px, 2.4vw, 30px);
    background: linear-gradient(90deg, rgba(16, 47, 101, .06), rgba(16, 47, 101, .02));
    border-right: 1px solid #EEF2F8;
    font-size: 15px;
    font-weight: 700;
    color: var(--nfd-navy, #102F65);
    text-transform: none;
}
.nf-cp-row__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--nfd-orange, #FF7900);
    box-shadow: 0 2px 6px rgba(16, 47, 101, .08);
}
.nf-cp-row__icon svg { width: 18px; height: 18px; }
.nf-cp-row--key .nf-cp-row__icon { background: var(--nfd-orange, #FF7900); color: #fff; }

/* Plain text flow (not flex) so "1<sup>st</sup> Floor…" stays together; centred in the row by align-self. */
.nf-cp-row__value {
    display: block;
    align-self: center;
    margin: 0;
    padding: 16px clamp(16px, 2.4vw, 30px);
    min-width: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--nfd-text, #26364D);
    overflow-wrap: anywhere;
    text-transform: none;
}
.nf-cp-code {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(16, 47, 101, .14);
    border-radius: 8px;
    background: #F1F5FB;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--nfd-navy, #102F65);
    overflow-wrap: anywhere;
    text-transform: none;
}
.nf-cp-row__value a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0B5CC4;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}
.nf-cp-row__value a { min-height: 28px; }   /* 24px+ tap target (WCAG 2.2) */
.nf-cp-row__value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nf-cp-row__value a:focus-visible { outline: 2px solid var(--nfd-orange, #FF7900); outline-offset: 3px; }
.nf-cp-row__value a svg { width: 15px; height: 15px; }
.nf-cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Audit reports ── */
.nf-cp-audit {
    margin-top: clamp(24px, 3vw, 36px);
    padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 36px);
    background: #fff;
    border: 1px solid var(--nfd-line, #E3E9F2);
    border-top: 4px solid #16A34A;
    border-radius: 22px;
    box-shadow: 0 30px 60px -36px rgba(16, 47, 101, .45);
}
.nf-cp-audit__head { text-align: center; margin-bottom: 22px; }
.rioc-app h2.nf-cp-audit__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--nfd-navy, #102F65); text-transform: none; }
.rioc-app p.nf-cp-audit__sub { margin: 6px 0 0; font-size: 14.5px; color: var(--nfd-muted, #64748B); text-transform: none; }
/* Flex + centred wrap: 3 on the first row and 2 centred below on desktop, balanced on every width. */
.rioc-app ul.nf-cp-audit__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.nf-cp-audit__grid > li { flex: 0 1 280px; min-width: 0; }
.nf-cp-audit__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 22px -14px rgba(21, 128, 61, .8);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.nf-cp-audit__btn:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.05); box-shadow: 0 18px 28px -14px rgba(21, 128, 61, .85); }
.nf-cp-audit__btn:focus-visible { outline: 3px solid var(--nfd-navy, #102F65); outline-offset: 3px; }
.nf-cp-audit__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.nf-cp-audit__icon svg { width: 22px; height: 22px; }
.nf-cp-audit__text { display: flex; flex-direction: column; min-width: 0; text-transform: none; }
.nf-cp-audit__text strong { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.nf-cp-audit__text span { font-size: 12px; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.nf-cp-audit__arrow { flex: none; width: 18px; height: 18px; margin-left: auto; opacity: .85; transition: transform .2s ease; }
.nf-cp-audit__btn:hover .nf-cp-audit__arrow { transform: translate(2px, -2px); }

/* ── Responsive ── */
@media (max-width: 899.98px) {
    .rioc-app ul.nf-cp-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nf-cp-row { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
/* Phones: label stacked above value, full width. */
@media (max-width: 599.98px) {
    .rioc-app ul.nf-cp-badges { gap: 10px; }
    .nf-cp-badge { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .nf-cp-badge__icon { width: 40px; height: 40px; }
    .nf-cp-card { border-radius: 18px; }
    .nf-cp-row { grid-template-columns: 1fr; }
    .nf-cp-row__label { padding: 14px 16px 6px; background: none; border-right: 0; font-size: 13.5px; }
    .nf-cp-row__icon { width: 28px; height: 28px; }
    .nf-cp-row__icon svg { width: 15px; height: 15px; }
    .nf-cp-row__value { padding: 0 16px 14px 56px; font-size: 15px; }
    .nf-cp-audit { border-radius: 18px; }
    .nf-cp-audit__grid > li { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nf-cp-badge, .nf-cp-row, .nf-cp-audit__btn, .nf-cp-audit__arrow { transition: none; }
    .nf-cp-badge:hover, .nf-cp-audit__btn:hover, .nf-cp-audit__btn:hover .nf-cp-audit__arrow { transform: none; }
}
