/* Camada visual compartilhada; carregar depois de app.css. */
:root {
    --bg: #f8f7f9;
    --surface-soft: #faf8fa;
    --ink: #251d26;
    --ink-soft: #716773;
    --line: #ece6eb;
    --radius: 18px;
    --shadow-sm: 0 3px 15px rgba(42, 25, 38, .035);
    --shadow-lg: 0 18px 44px rgba(42, 25, 38, .1);
}

body { line-height: 1.5; }
h1, h2, h3 { text-wrap: balance; }
.button { min-height: 44px; border-radius: 13px; font-size: 13px; }
.button-primary { box-shadow: none; }
.button-primary:hover { box-shadow: none; }
.button-small { border-radius: 10px; }
.brand { font-size: 23px; }
.brand-mark { box-shadow: none; border-radius: 10px; }
.field-control { min-width: 0; min-height: 48px; border-radius: 12px; background: #fff; font-size: 16px; }
.field-control:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.field-label { color: var(--ink); font-size: 13px; }
.button:focus-visible, .nav-item:focus-visible, .public-nav-link:focus-visible,
.mobile-nav a:focus-visible, .icon-action:focus-visible, .post-action:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

/* Descoberta pública. */
.public-header { position: sticky; top: 0; height: 72px; background: rgba(255,255,255,.97); border-bottom-color: var(--line); }
.public-header .container { gap: 10px; }
.public-nav { gap: 5px; }
.public-nav .button { min-height: 44px; padding-inline: 15px; }
.public-nav-login { display: inline-flex; align-items: center; min-height: 44px; }
.landing .hero { padding: 42px 0 46px; }
.landing .hero::before { opacity: .35; }
.landing .hero-layout { grid-template-columns: minmax(0,1fr); gap: 28px; text-align: left; }
.landing .hero h1 { font-size: clamp(43px, 11.5vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
.landing .hero-copy > p { max-width: 520px; margin: 20px 0 24px; font-size: 16px; line-height: 1.7; }
.landing .eyebrow { font-size: 10px; letter-spacing: .09em; }
.landing .landing-search { margin: 25px 0 0; }
.landing-search-control { min-height: 60px; padding: 6px 6px 6px 13px; border-radius: 15px; box-shadow: 0 4px 18px rgba(69,40,54,.06); }
.landing-search-control input[data-cidade] { font-size: 16px; }
.landing-search-control button { min-width: 88px; height: 44px; padding-inline: 13px; border-radius: 10px; font-size: 13px; }
.landing .hero-links { justify-content: flex-start; gap: 8px 18px; }
.landing .hero-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.landing .hero-note { justify-content: flex-start; align-items: flex-start; margin-top: 13px; font-size: 11px; }
.hero-note b { flex: 0 0 24px; }
.landing .hero-showcase { min-width: 0; min-height: 310px; margin: 0; }
.landing .showcase-orbit { width: min(95%, 360px); height: auto; aspect-ratio: 1; border-color: #f2e7ed; }
.landing .showcase-profile { width: 230px; height: 294px; border: 1px solid #eddce4; border-radius: 28px; box-shadow: none; transform: rotate(3deg); }
.showcase-profile.showcase-generic { background: #f8eaf0; }
.showcase-profile.showcase-generic::before { border-color: #e8ceda; box-shadow: none; }
.showcase-profile.showcase-generic::after { background: linear-gradient(transparent 10%, rgba(248,234,240,.96) 95%); }
.showcase-generic .showcase-shape-one { background: #d6a6bc; }
.showcase-generic .showcase-shape-two { background: var(--brand); }
.showcase-generic .showcase-spark { color: var(--brand); text-shadow: none; font-size: 36px; top: 70px; left: 45px; }
.showcase-generic .showcase-info { color: var(--ink); }
.showcase-generic .showcase-info small { color: var(--ink-soft); }
.landing .showcase-chip { max-width: 90%; padding: 9px 12px; border-radius: 12px; font-size: 10px; box-shadow: var(--shadow-sm); }
.landing .showcase-chip-top { top: 24px; left: 0; }
.landing .showcase-chip-bottom { right: 0; bottom: 28px; }
.landing .showcase-mini-card { top: 75px; right: 0; width: 123px; padding: 11px; border-color: var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.trust-bar { background: #fff; }
.trust-grid { min-height: 0; padding-block: 12px; }
.trust-item { min-height: 66px; }
.trust-icon { border-radius: 12px; }
.landing .section { padding: 54px 0; }
.landing .section-soft { background: var(--surface-soft); }
.section-heading h2, .showcase-section-heading h2 { font-size: clamp(27px, 6.5vw, 39px); line-height: 1.2; letter-spacing: -.04em; }
.section-heading p, .showcase-section-heading p { font-size: 14px; line-height: 1.7; }
.landing .section-heading { margin-bottom: 28px; }
.discovery-choice-grid { gap: 14px; }
.discovery-choice { min-height: 240px; padding: 24px 20px; border-radius: 20px; box-shadow: none; }
.discovery-choice.is-professional { border-color: #eed5df; background: #fff7fa; color: var(--ink); }
.discovery-choice.is-professional .discovery-choice-icon { background: var(--brand-soft); color: var(--brand); }
.discovery-choice.is-professional small, .discovery-choice.is-professional b { color: var(--brand); }
.discovery-choice.is-professional em { color: var(--ink-soft); }
.discovery-choice strong { font-size: 25px; }
.discovery-choice em { font-size: 14px; }
.discovery-choice b { left: 85px; bottom: 23px; }
.discovery-choice::after { opacity: .4; }
.landing-profile-card { border-radius: 17px; box-shadow: none; }
.landing-profile-card:hover, .discovery-choice:hover { border-color: #dfb7c8; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.showcase-empty-state { min-height: 150px; border-style: solid; border-radius: 20px; }
.step-card { min-height: 210px; padding: 25px; box-shadow: none; }
.step-number { font-size: 38px; color: #d9bbc9; }
.cta-band { background: var(--brand-soft); color: var(--ink); border: 1px solid #f0d4df; box-shadow: none; border-radius: 22px; }
.cta-band p { color: var(--ink-soft); line-height: 1.7; }
.cta-kicker { color: var(--brand); }
.cta-band .button-primary { background: var(--brand); color: #fff; }
.cta-band .button-primary:hover { background: var(--brand-strong); color: #fff; }
.topic-link { border-radius: 12px; box-shadow: none; }
.public-footer { padding-block: 30px; }
.footer-links { flex-wrap: wrap; gap: 8px 19px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Uma coluna móvel, com a navegação sempre ao alcance. */
.social-page { background: var(--bg); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.social-layout { display: block; width: 100%; min-height: 100vh; }
.sidebar, .right-column { display: none; }
.main-column, .profile-page-main, .settings-main { min-width: 0; padding: 0 14px 30px; }
.top-mobile { display: flex; min-height: 70px; margin: 0 -14px 22px; padding-inline: 16px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.top-mobile-actions { gap: 10px; }
.top-mobile-actions > a { min-height: 44px; display: inline-flex; align-items: center; }
.icon-action { width: 44px; height: 44px; font-size: 20px; border-color: var(--line); }
.page-heading { margin-bottom: 22px; padding-inline: 2px; align-items: flex-start; }
.page-heading h1 { font-size: clamp(27px,4vw,34px); letter-spacing: -.045em; line-height: 1.2; }
.page-heading p { margin-top: 8px; font-size: 13px; line-height: 1.65; }
.content-card, .profile-tile { box-shadow: none; }
.feed-main > .page-heading, .feed-main > .quick-composer,
.feed-main > .profile-completion, .feed-main > .notice, .feed-main > .form-success {
    width: 100%; max-width: 680px; margin-inline: auto;
}
.quick-composer { min-height: 80px; padding: 15px; margin-bottom: 22px; border-radius: 17px; background: #fff; }
.quick-composer > span:not(.avatar-ui) { font-size: 13px; line-height: 1.5; }
.post-feed { width: 100%; max-width: 680px; gap: 22px; }
.post-card { border-radius: 18px; }
.post-header { min-height: 80px; padding: 15px 16px; }
.post-author strong { font-size: 14px; overflow-wrap: anywhere; }
.post-author small { margin-top: 4px; font-size: 11px; }
.post-menu summary { width: 44px; height: 44px; }
.post-menu-popover { top: 48px; }
.post-text { padding: 0 17px 19px; font-size: 14px; line-height: 1.75; }
.post-media img { aspect-ratio: auto; max-height: 740px; object-fit: contain; }
.post-actions { min-height: 60px; padding: 6px 8px; gap: 1px; }
.post-action { min-height: 44px; padding-inline: 10px; font-size: 12px; }
.post-comment { grid-template-columns: 34px minmax(0,1fr) 36px; padding: 12px 15px; }
.post-comment p { font-size: 13px; line-height: 1.6; }
.comment-form { gap: 5px; padding: 12px; }
.comment-form input { min-height: 44px; padding-inline: 12px; font-size: 16px; }
.comment-form button { min-height: 44px; padding-inline: 8px; font-size: 12px; }
.feed-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
.profile-tile:hover { transform: none; box-shadow: none; border-color: #dfb7c8; }
.tile-body { padding: 17px; }
.tile-footer { gap: 8px; flex-wrap: wrap; }
.tile-footer .button { min-height: 44px; }
.tile-stats { flex-wrap: wrap; }
.search-panel { padding: 14px; margin-bottom: 24px; }
.explore-mode-tab { min-height: 76px; padding: 13px; border-radius: 13px; }
.explore-mode-tab.is-active { border-color: #df9fb8; box-shadow: none; }
.explore-categories { gap: 8px; margin-bottom: 15px; }
.explore-categories a { min-height: 44px; padding-inline: 15px; }
.explore-filters { gap: 10px; }
.section-title { margin-block: 27px 16px; }
.section-title h2 { font-size: 20px; }
.section-title p { line-height: 1.6; }
.profile-shell { border-radius: 20px; }
.public-profile-main { padding-top: 24px; }
.profile-cover { height: 188px; background-color: var(--brand-soft); }
.profile-overview { padding: 0 18px 24px; }
.profile-avatar-row { flex-wrap: wrap; gap: 8px; }
.profile-avatar-row .avatar-lg { flex: 0 0 auto; }
.profile-actions-ui { min-width: 0; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.profile-actions-ui .button { min-height: 44px; padding-inline: 13px; }
.profile-name { margin-top: 14px; font-size: 27px; line-height: 1.25; overflow-wrap: anywhere; }
.profile-handle { overflow-wrap: anywhere; line-height: 1.6; }
.profile-bio { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.profile-meta { gap: 10px 17px; font-size: 12px; }
.profile-stats { flex-wrap: wrap; gap: 15px 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-stat { font-size: 12px; }
.profile-stat strong { margin-bottom: 2px; font-size: 20px; }
.interest-list span { padding: 7px 11px; }
.empty-state { padding: 48px 22px; }
.empty-state p { line-height: 1.7; }
.settings-card { padding: 22px 18px; }
.settings-header h1 { font-size: 24px; line-height: 1.25; }
.mobile-nav { display: grid; min-height: 76px; height: calc(76px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
.mobile-nav a { min-width: 0; min-height: 60px; gap: 3px; font-size: 10px; color: var(--ink-soft); }
.mobile-nav .nav-icon { width: 42px; height: 31px; border-radius: 12px; font-size: 22px; }
.mobile-nav a.is-active .nav-icon { background: var(--brand-soft); color: var(--brand); }

@media (min-width: 641px) {
    .social-page { padding-bottom: 24px; }
    .social-layout { display: grid; width: min(calc(100% - 32px), 1040px); grid-template-columns: 76px minmax(0,1fr); gap: 24px; }
    .sidebar { display: flex; padding-block: 28px; }
    .sidebar .brand { padding-bottom: 28px; }
    .nav-list { gap: 8px; }
    .nav-item { min-height: 50px; border-radius: 13px; font-size: 13px; }
    .nav-item:hover { background: #f0eaf0; }
    .sidebar-user { border-radius: 14px; background: #fff; }
    .main-column, .profile-page-main, .settings-main { padding: 30px 0 50px; }
    .top-mobile, .mobile-nav { display: none; }
    .feed-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
    .post-header { padding: 17px 20px; }
    .post-text { padding-inline: 21px; font-size: 15px; }
    .post-actions { padding-inline: 13px; }
    .quick-composer > b { display: block; border-radius: 11px; }
    .profile-cover { height: 245px; }
    .profile-overview { padding: 0 27px 28px; }
    .settings-card { padding: 28px; }
    .landing .hero { padding-block: 60px; }
    .landing .hero-layout { text-align: center; gap: 35px; }
    .landing .hero-copy > p, .landing .landing-search { margin-inline: auto; }
    .landing .hero-links, .landing .hero-note { justify-content: center; }
    .landing .hero h1 { font-size: clamp(58px,7vw,80px); }
    .landing .hero-copy > p { font-size: 18px; }
    .landing .hero-showcase { min-height: 400px; }
    .landing .showcase-profile { width: 290px; height: 380px; }
    .landing .showcase-chip-top { left: 12%; }
    .landing .showcase-chip-bottom { right: 12%; bottom: 42px; }
    .landing .showcase-mini-card { top: 100px; right: 12%; width: 145px; }
    .landing .section { padding-block: 74px; }
    .discovery-choice { padding: 29px; }
    .discovery-choice b { left: 109px; bottom: 29px; }
    .trust-grid { padding-block: 20px; }
    .public-nav { gap: 10px; }
}

@media (min-width: 1000px) {
    .social-layout { width: min(calc(100% - 48px), 1280px); grid-template-columns: 210px minmax(0,1fr); gap: 34px; }
    .sidebar .brand { justify-content: flex-start; padding-left: 13px; }
    .sidebar .brand-word, .nav-label, .sidebar-user-info { display: block; }
    .nav-item { justify-content: flex-start; padding-inline: 14px; }
    .sidebar-user { justify-content: flex-start; padding: 13px; }
    .landing .hero { padding-block: 84px; }
    .landing .hero-layout { grid-template-columns: 1.15fr .85fr; gap: 60px; text-align: left; }
    .landing .hero-copy > p, .landing .landing-search { margin-inline: 0; }
    .landing .hero-links, .landing .hero-note { justify-content: flex-start; }
    .landing .hero-showcase { min-height: 440px; }
    .landing .showcase-profile { width: 320px; height: 420px; }
    .landing .showcase-chip-top { left: 0; }
    .landing .showcase-chip-bottom { right: 0; }
    .landing .showcase-mini-card { right: -4px; }
    .hero-layout { min-width: 0; }
}

@media (min-width: 1180px) {
    .social-layout { grid-template-columns: 210px minmax(0,1fr) 240px; gap: 28px; }
    .right-column { display: block; padding-block: 30px; }
    .right-card { top: 30px; padding: 22px 19px; background: #fff; }
    .right-card h3 { font-size: 15px; line-height: 1.5; }
    .safety-list { gap: 19px; }
    .safety-item span { line-height: 1.6; }
}

@media (max-width: 359px) {
    .public-header .brand { font-size: 20px; }
    .public-nav { gap: 0; }
    .public-nav .button { padding-inline: 11px; font-size: 12px; }
    .public-nav-login { font-size: 12px; }
    .post-action { gap: 4px; padding-inline: 7px; }
    .discovery-choice { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
    .discovery-choice-icon { width: 38px; height: 38px; }
    .discovery-choice b { left: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .button, .discovery-choice, .landing-profile-card, .profile-tile { transition: none; }
    .button:hover, .discovery-choice:hover, .landing-profile-card:hover { transform: none; }
}
