:root {
    --bg: #f9f9fa;
    --surface: #ffffff;
    --text: #1a1c1d;
    --muted: #40484e;
    --border: rgba(112, 120, 126, 0.22);
    --accent: #00425e;
    --accent-hover: #005b7f;
    --surface-low: #f3f3f4;
    --surface-container: #edeeef;
    --surface-high: #e2e2e3;
    --secondary-chip: #96f2f1;
    --radius: 12px;
    --shadow: 0 12px 32px -4px rgba(0, 30, 45, 0.08);
}

body {
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.01em;
    background: radial-gradient(circle at top right, rgba(23, 101, 137, 0.08), transparent 40%), var(--bg);
}

h1, h2, h3, .brand, .page-title, .form-card-title, .hero h1 {
    font-family: Manrope, Inter, sans-serif;
    letter-spacing: -0.02em;
}

.site-header {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.header-inner, main {
    max-width: 72rem;
}

.brand {
    font-size: 1.28rem;
    font-weight: 800;
}

.main-nav a,
.nav-logout button {
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    color: var(--muted);
}

.main-nav a:hover,
.nav-logout button:hover {
    color: var(--accent);
    background: var(--surface-low);
    text-decoration: none;
}

.card,
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero {
    border-radius: 18px;
    padding: 2.2rem 1.2rem 2.4rem;
    background: linear-gradient(135deg, rgba(0, 66, 94, 0.96), rgba(0, 91, 127, 0.88));
    color: #ffffff;
}

.hero .hero-lead,
.hero a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions .btn {
    border-radius: 999px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00425e, #005b7f);
    border-color: #005b7f;
}

.btn-secondary {
    background: var(--surface);
    color: var(--accent) !important;
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.field-hint {
    color: var(--muted);
}

input[type=text], input[type=email], input[type=password], input[type=file], select, textarea {
    background: var(--surface-low);
    border: 1px solid transparent;
    border-radius: 12px;
    max-width: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.skills-list li,
.busca-tag {
    border-radius: 999px;
}

.busca-result {
    border: 1px solid transparent;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.busca-result:hover {
    border-color: var(--border);
}

.profile-contact-logged {
    background: var(--surface-low);
    border-color: transparent;
    box-shadow: none;
}

.site-footer {
    background: var(--surface-low);
    border-top: 1px solid var(--border);
}

.hero-stitch {
    margin-bottom: 1.2rem;
}

.hero-kicker {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
    font-weight: 700;
}

.hero-footnote {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.stitch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.stitch-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.12rem;
}

.stitch-card p {
    margin: 0;
    color: var(--muted);
}

.page-head-stitch {
    margin-bottom: 0.75rem;
}

.search-shell-stitch {
    border-radius: 18px;
}

.profile-public-head {
    margin-bottom: 0.7rem;
}

.profile-public-head h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.profile-public-head p {
    margin: 0;
}

.profile-public-card {
    border-radius: 18px;
}

.page-auth-head {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.9rem;
}

.page-auth .form-card {
    border-radius: 18px;
}

.page-auth .form-card-title {
    margin-bottom: 0.45rem;
}

.account-shell-stitch {
    border-radius: 18px;
}

.moderation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.moderation-item {
    margin-bottom: 0.9rem;
    border-radius: 14px;
}

.moderation-actions-form {
    margin-top: 0.65rem;
}

.moderation-doc-list {
    margin: 0.35rem 0 0.35rem 1rem;
}

.moderation-pre {
    white-space: pre-wrap;
    background: var(--surface-low);
    padding: 0.75rem;
    border-radius: 8px;
}

.form-lead-left { text-align: left; }
.form-lead-tight { margin: 0; }
.form-lead-topless { margin-top: 0; }
.form-lead-gap-bottom { margin: 0 0 1rem; }

.btn-block {
    width: 100%;
    max-width: none;
}

.btn-spacing-sm { margin-top: 0.5rem; }
.btn-spacing-md { margin-top: 1.15rem; }

.form-msg-hidden { display: none; }

.mt-0 { margin-top: 0; }
.mb-sm { margin-bottom: 0.5rem; }

.account-avatar-current {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.select-multiple-stitch {
    width: 100%;
    max-width: none;
    padding: 0.4rem;
}

.hint-account-contact {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.card-gap-bottom { margin-bottom: 1.25rem; }
.card-gap-top { margin-top: 1.25rem; }
.card-gap-y { margin: 1rem 0; }

.verification-docs-fieldset {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 1rem 0 0;
}

.verification-docs-legend {
    padding: 0 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.verification-docs-help { margin-top: 0.35rem; }
.verification-doc-row { margin-bottom: 0.65rem; }
.verification-doc-row-last { margin-bottom: 0; }
.hint-table-head { margin: 0 0 0.5rem; }

.textarea-full {
    width: 100%;
    max-width: none;
}

.chat-message-line {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.footer-tagline {
    margin: 0.5rem 0 0;
}

.stitch-hero-shell {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stitch-hero-copy {
    border-radius: 18px;
    padding: 2rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 66, 94, 0.96), rgba(0, 91, 127, 0.88));
    color: #fff;
}

.stitch-hero-copy .hero-lead {
    color: rgba(255, 255, 255, 0.92);
}

.stitch-hero-side {
    display: flex;
}

.stitch-highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.2rem;
    width: 100%;
}

.stitch-highlight-card h3 {
    margin: 0 0 0.45rem;
}

.stitch-highlight-card p {
    margin: 0 0 0.85rem;
    color: var(--muted);
}

.stitch-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.4rem;
}

.search-shell-stitch-strong {
    border-radius: 20px;
    padding-top: 0.35rem;
}

@media (max-width: 900px) {
    .stitch-hero-shell,
    .stitch-bento {
        grid-template-columns: 1fr;
    }
}

/* Perfil público ministro — full-bleed dentro do <main> estreito (layout Stitch) */
.profile-public-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.material-symbols-outlined.fill {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.text-shadow-premium {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
