/**
 * account.mrktmap.uk/css/account.css
 * Stylesheet for the account subdomain — separate from the main site's
 * css/main.css etc., since this is a different codebase root, but reuses
 * the same brand colours pulled from the MRKTMAP logo.
 */

:root {
    --forest: #1a3d2b;
    --green: #3aaa6e;
    --green-pale: #e8f5ee;
    --border: #e2e2e2;
    --text: #1f2421;
    --muted: #6b7670;
    --error: #b3261e;
    --error-pale: #fbe9e7;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f7f8f6;
    color: var(--text);
}

a { color: var(--forest); }

/* ── Header ── */
.acc-header {
    background: var(--forest);
    color: #fff;
    padding: 0.9rem 0;
}
.acc-header-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.acc-logo {
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.02em;
}
.acc-logo span { color: var(--green); }
.acc-header-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.85rem; }
.acc-header-nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
.acc-header-nav a:hover { color: #fff; }

/* ── Layout ── */
.acc-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

/* ── Cards ── */
.acc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.acc-card h1 { font-size: 1.4rem; margin: 0 0 0.4rem; color: var(--forest); }
.acc-card h2 { font-size: 1.05rem; margin: 0 0 0.6rem; color: var(--forest); }
.acc-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }

/* Narrow, centred card — used by login/register/password pages */
.acc-card--narrow { max-width: 480px; margin: 0 auto; }
.acc-card--center { text-align: center; }
.acc-card--dashed { background: #f7f8f6; border-style: dashed; }

/* ── Forms ── */
.acc-field { margin-bottom: 1rem; }
.acc-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.acc-field input, .acc-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
}
.acc-field input:focus, .acc-field textarea:focus { outline: none; border-color: var(--green); }
.acc-field-hint { font-weight: 400; color: var(--muted); }

/* ── Buttons ── */
.acc-btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
}
.acc-btn:hover { background: var(--green); }
.acc-btn-ghost {
    background: transparent;
    color: var(--forest);
    border: 1.5px solid var(--border);
}
.acc-btn-ghost:hover { background: var(--green-pale); color: var(--forest); border-color: var(--green); }
.acc-btn--block { width: 100%; }
.acc-btn--sm { font-size: 0.82rem; padding: 0.45rem 1rem; }

/* ── Alerts ── */
.acc-alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}
.acc-alert--error { background: var(--error-pale); color: var(--error); }
.acc-alert--success { background: var(--green-pale); color: var(--forest); }
.acc-alert--warn { background: #fffbeb; color: #92400e; border: 1px solid #f59e0b; }
.acc-alert--flush { margin: 0; }

/* ── Listing rows (dashboard) ── */
.acc-listing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
}
.acc-listing-row:first-child { border-top: none; }
.acc-group-heading + .acc-listing-row { border-top: none; }
.acc-listing-row--stacked { flex-direction: column; align-items: stretch; }
.acc-listing-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.acc-listing-name { font-weight: 700; color: var(--forest); }
.acc-listing-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

.acc-badge {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    background: var(--green-pale);
    color: var(--forest);
}
.acc-status-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
}
.acc-status-pill--pending  { background: #fdf2cf; color: #8a6a07; }
.acc-status-pill--active   { background: #e3f3e6; color: #1d6b32; }
.acc-status-pill--seasonal { background: #e3eefa; color: #1d4f8a; }
.acc-status-pill--inactive { background: #ececec; color: #5c5c5c; }
.acc-status-pill--rejected,
.acc-status-pill--revoked  { background: var(--error-pale); color: var(--error); }
.acc-trusted-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green);
    margin-left: 0.4rem;
}

/* ── Stat strip ── */
.acc-stat-strip {
    display: flex;
    gap: 1.75rem;
    margin: 0.6rem 0 1.25rem;
}
.acc-stat { display: flex; flex-direction: column; }
.acc-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--forest); line-height: 1.1; }
.acc-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* ── Simple data table ── */
.acc-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.acc-table th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0.4rem 0.6rem 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.acc-table td {
    padding: 0.65rem 0.6rem 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.acc-table tr:last-child td { border-bottom: none; }
.acc-table a { font-weight: 600; }

/* ── Dashboard group headings ── */
.acc-group-heading {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 1.5rem 0 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.acc-group-heading:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* ── Leaflet map widget (market-edit.php location picker) ── */
.acc-map {
    height: 320px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 0.6rem 0;
}
.acc-map-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* ── Read-only profile field rows ── */
.acc-profile-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
}
.acc-profile-row:first-child { border-top: none; }
.acc-profile-label {
    width: 140px;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.8rem;
}
.acc-profile-value { flex: 1; word-break: break-word; }

/* ── Verification code box ── */
.acc-verify-box {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    background: #f7f8f6;
    border: 1px dashed var(--border);
    border-radius: 8px;
}
.acc-verify-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--forest);
}
.acc-verify-code--lg {
    display: block;
    font-size: 1.3rem;
    background: #fff;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0.75rem 0;
}
.acc-verify-note {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ── Form footer links ── */
.acc-form-footer { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.acc-form-footer a { font-weight: 600; }

/* ── Claim search results ── */
.acc-search-results { margin-top: 1.5rem; }
.acc-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.6rem;
}