/**
 * Store trust profile page - English-first
 */

:root {
    --st-bg: #f1f5f9;
    --st-card: #ffffff;
    --st-text: #0f172a;
    --st-muted: #64748b;
    --st-border: #e2e8f0;
    --st-primary: #2563eb;
    --st-primary-dark: #1d4ed8;
    --st-high: #dc2626;
    --st-medium: #d97706;
    --st-low: #059669;
}

* { box-sizing: border-box; }

body.st-body {
    margin: 0;
    background: var(--st-bg);
    color: var(--st-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
}

.st-nav {
    background: #fff;
    border-bottom: 1px solid var(--st-border);
}

.st-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.st-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    gap: 1rem;
}

.st-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--st-primary-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.st-brand img { width: 26px; height: 26px; border-radius: 5px; }

.st-nav-links { display: flex; gap: 1.1rem; font-size: 0.875rem; }
.st-nav-links a { color: var(--st-muted); text-decoration: none; }
.st-nav-links a:hover { color: var(--st-primary); }

.st-main { padding: 1.75rem 0 3rem; }

.st-breadcrumb {
    font-size: 0.8125rem;
    color: var(--st-muted);
    margin-bottom: 1rem;
}
.st-breadcrumb a { color: var(--st-muted); text-decoration: none; }
.st-breadcrumb a:hover { color: var(--st-primary); }

.st-card {
    background: var(--st-card);
    border: 1px solid var(--st-border);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.st-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.st-head h1 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.st-meta {
    color: var(--st-muted);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.st-badge.high { background: #fee2e2; color: #991b1b; }
.st-badge.medium { background: #fef3c7; color: #92400e; }
.st-badge.low { background: #dcfce7; color: #166534; }
.st-badge.unknown { background: #e2e8f0; color: #475569; }

.st-summary {
    margin-top: 1.1rem;
    padding: 0.95rem 1.1rem;
    background: #f8fafc;
    border: 1px solid var(--st-border);
    border-radius: 9px;
    font-size: 0.9375rem;
    color: #334155;
}

.st-note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--st-muted);
}

.st-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.st-metric {
    border: 1px solid var(--st-border);
    border-radius: 9px;
    padding: 0.8rem 0.9rem;
    background: #fff;
}

.st-metric .k {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--st-muted);
    margin-bottom: 0.25rem;
}

.st-metric .v {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--st-text);
    word-break: break-word;
}

.st-metric .s {
    font-size: 0.6875rem;
    color: var(--st-muted);
    margin-top: 0.2rem;
}

.st-section-title {
    font-size: 1.15rem;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.st-details {
    border: 1px solid var(--st-border);
    border-radius: 9px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.65rem;
    background: #fff;
}
.st-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
}
.st-details p {
    margin: 0.6rem 0 0;
    color: #475569;
    font-size: 0.875rem;
}

.st-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.st-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--st-primary);
    color: var(--st-primary-dark);
    background: #fff;
}
.st-btn:hover { background: #eff6ff; }
.st-btn.primary { background: var(--st-primary); color: #fff; }
.st-btn.primary:hover { background: var(--st-primary-dark); }

.st-owner {
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.st-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.st-form-row label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.st-input, .st-select, .st-textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    color: var(--st-text);
}
.st-input:focus, .st-select:focus, .st-textarea:focus {
    outline: none;
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.st-textarea { min-height: 92px; resize: vertical; }

.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.st-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.st-alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.st-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.st-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
}
.st-footer a { color: #93c5fd; }
.st-footer p { margin: 0.35rem 0; }

@media (max-width: 720px) {
    .st-nav-links { display: none; }
    .st-card { padding: 1.1rem; }
}
