/* Auditor Network (/auditor-network, /auditor-network/join|manage, /auditors, /auditors/{slug}).
   Everything else comes from pages.css. Classes are an- prefixed. */

.an-lede { margin-top: 14px; }

/* ── Landing ─────────────────────────────────────────────────────────────── */
.an-partner { display: flex; flex-direction: column; gap: 12px; }
.an-partner h3 a { color: var(--v4-text); }
.an-partner .v4-card__link { margin-top: auto; }
.an-fw-groups { display: grid; gap: 22px; }
.an-fw-groups__title { margin-bottom: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-text-3); }
.an-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
.an-hiring { align-items: center; padding: clamp(20px, 3vw, 28px); }
.an-hiring > div { flex: 1; }
.an-hiring h2 { margin-bottom: 4px; }

/* ── Profile form ────────────────────────────────────────────────────────── */
.an-form { gap: 28px; }
.an-form .v4-form-row { align-items: start; }
.an-fieldset { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid var(--v4-line); }
.an-fieldset legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 4px; padding: 0; font-family: var(--v4-font-display); font-size: 1.3rem; font-weight: 600; color: var(--v4-text); }
.an-fieldset legend + * { clear: both; }
.an-fieldset__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--v4-ink-900); color: #fff; font: 700 .875rem var(--v4-font-sans); }
.an-fieldset__help { margin-top: -6px; }
.an-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-group-title { margin-top: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-text-3); }

.an-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an-type { position: relative; cursor: pointer; }
.an-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.an-type > span { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--v4-line-2); border-radius: 14px; background: #fff; transition: border-color .2s var(--v4-ease), box-shadow .2s var(--v4-ease); }
.an-type .v4-ico { grid-row: span 2; width: 24px; height: 24px; color: var(--v4-teal-700); }
.an-type strong { color: var(--v4-text); font-size: .9375rem; }
.an-type small { color: var(--v4-text-3); font-size: .8125rem; line-height: 1.4; }
.an-type:hover > span { border-color: var(--v4-slate-400); }
.an-type input:checked + span { border-color: var(--v4-teal-600); box-shadow: 0 0 0 3px rgba(13, 148, 136, .16); background: var(--v4-teal-50); }
.an-type input:focus-visible + span { outline: 3px solid var(--v4-focus, var(--v4-teal-600)); outline-offset: 2px; }

.an-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; }
.an-checks--compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.an-checks .v4-check { min-height: 40px; align-items: center; padding: 4px 0; }
.an-checks .v4-check input { margin-top: 0; }
.an-sub { padding: 14px 16px; border-radius: 12px; background: var(--v4-teal-50); border: 1px solid var(--v4-teal-100); }

.an-creds { display: grid; gap: 14px; }
.an-cred { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 52px 16px 16px; border: 1px solid var(--v4-line); border-radius: 14px; background: var(--v4-tint); }
.an-cred__type { grid-column: 1 / -1; }
.an-cred__name { grid-column: 1 / -1; }
.an-cred__name[hidden] { display: none; }
.an-cred__status { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--v4-text-3); }
.an-cred__status .v4-ico { width: 16px; height: 16px; }
.an-cred__remove { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--v4-text-3); cursor: pointer; }
.an-cred__remove:hover { background: #fff; color: #B91C1C; }
.an-cred__remove .v4-ico { width: 18px; height: 18px; }
.an-add { justify-self: start; }
.an-add[hidden] { display: none; }

.an-rate { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 140px; gap: 12px; }
.an-commitments { display: grid; gap: 14px; }

/* ── Asides ──────────────────────────────────────────────────────────────── */
.an-aside { display: grid; gap: 16px; }
.an-aside .v4-card h3 { margin-bottom: 8px; }
.an-aside .v4-card p + p { margin-top: 10px; }
.an-next { display: grid; gap: 12px; counter-reset: an-next; }
.an-next li { position: relative; padding-left: 34px; font-size: .9375rem; counter-increment: an-next; }
.an-next li::before { content: counter(an-next); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--v4-teal-50); color: var(--v4-teal-800); font-size: .75rem; font-weight: 800; }
.an-next strong { color: var(--v4-text); }

/* ── Directory ───────────────────────────────────────────────────────────── */
.an-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--v4-line); border-radius: var(--v4-r-lg); background: var(--v4-tint); }
.an-filters > * { min-width: 0; }
.an-filters__search { box-shadow: none; }
.an-filters__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; gap: 14px; align-items: end; }
.an-filters__row .v4-field { gap: 4px; }
.an-filters__row label:not(.v4-check) { font-size: .8125rem; }
.an-filters__avail { min-height: 48px; align-items: center; }
.an-filters__avail input { margin-top: 0; }
.an-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 20px; }

.an-cards { align-items: stretch; }
.an-card { display: flex; flex-direction: column; gap: 12px; }
.an-card__head { display: flex; gap: 14px; align-items: center; }
.an-card__head h3 { font-size: 1.0625rem; line-height: 1.3; }
.an-card__head h3 a { color: var(--v4-text); }
.an-card__meta { font-size: .8125rem; color: var(--v4-text-3); }
.an-card__headline { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--v4-line); font-size: .8125rem; }
.an-verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #047857; }
.an-verified .v4-ico { width: 16px; height: 16px; }

.an-avatar { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--v4-ink-900); color: #fff; font-weight: 700; font-size: .9375rem; letter-spacing: .02em; }
.an-avatar--firm { border-radius: 12px; background: var(--v4-teal-700); }

.an-empty { display: grid; justify-items: center; gap: 8px; }
.an-empty p { max-width: 60ch; margin-inline: auto; }
.an-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.an-empty-actions .v4-btn { margin-top: 8px; }
.an-disclaimer { display: flex; gap: 8px; align-items: flex-start; margin-top: 28px; }
.an-disclaimer .v4-ico { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; }
.an-ticks { margin-top: 22px; }

/* ── Profile ─────────────────────────────────────────────────────────────── */
.an-profile__main { display: grid; gap: 44px; min-width: 0; }
.an-profile__main > section { display: grid; gap: 12px; align-content: start; }
.an-bio { max-width: 70ch; color: var(--v4-text-2); }
.an-subhead { margin-top: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v4-text-3); }
.an-state { display: inline-flex; align-items: center; gap: 8px; color: var(--v4-text-3); }
.an-state .v4-ico { flex-shrink: 0; width: 18px; height: 18px; }
.an-state--ok { color: #047857; font-weight: 600; }
.an-state--pending { color: #B45309; }
.an-authority th[scope="row"] { white-space: nowrap; }

.an-creds-list { display: grid; gap: 10px; }
.an-creds-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--v4-line); border-radius: 14px; background: #fff; }
.an-creds-list li > div { display: grid; gap: 2px; min-width: 0; }
.an-creds-list strong { color: var(--v4-text); font-size: .9375rem; }
.an-creds-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--v4-slate-100); color: var(--v4-text-3); }
.an-creds-list__icon.is-ok { background: var(--v4-teal-50); color: var(--v4-teal-700); }
.an-creds-list__icon .v4-ico { width: 20px; height: 20px; }

.an-commit-list { display: grid; gap: 10px; margin: 4px 0 12px; }
.an-commit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.an-commit-list .v4-ico { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.an-commit-list .is-yes .v4-ico { color: #047857; }
.an-commit-list .is-no { color: var(--v4-text-3); }
.an-links { display: grid; gap: 8px; margin-top: 12px; }
.an-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; }
.an-links .v4-ico { width: 18px; height: 18px; }
.an-report { padding: 0 4px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .an-filters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .an-profile.v4-with-aside { grid-template-columns: minmax(0, 1fr); }
    .an-profile .v4-sticky { position: static; }
}
@media (max-width: 760px) {
    .an-plans, .an-types, .an-row-3 { grid-template-columns: minmax(0, 1fr); }
    .an-rate { grid-template-columns: 100px minmax(0, 1fr); }
    .an-hiring { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .an-filters__row, .an-cred { grid-template-columns: minmax(0, 1fr); }
    .an-cred { padding-right: 16px; padding-top: 52px; }
    .an-checks { grid-template-columns: minmax(0, 1fr); }
    .an-checks--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .an-creds-list li { grid-template-columns: 40px minmax(0, 1fr); }
    .an-creds-list li > :last-child { grid-column: 2; justify-self: start; }
}

/* pages.css styles text-like inputs only; match date inputs to them. */
.an-form input[type="date"] { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--v4-font-sans); color: var(--v4-text); background: #fff; border: 1.5px solid var(--v4-line-2); border-radius: 12px; }
.an-form input[type="date"]:focus { outline: none; border-color: var(--v4-teal-600); box-shadow: 0 0 0 3px rgba(13, 148, 136, .18); }
.an-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.an-terms-link { margin-top: 20px; text-align: center; }
