/* RPL:MOBILE:01 — mobile-only layout for Portal da Luz social pages. */
.portal-social .mobile-topbar-actions,.portal-social .mobile-nav-dialog{display:none}

@media(max-width:760px){
    html{overflow-x:clip}
    .portal-social .topbar{position:sticky;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;height:60px;min-height:60px;gap:8px;padding:7px 12px}
    .portal-social .brand{flex:1;width:auto;min-width:0;padding-right:0;gap:8px;font-size:15px}
    .portal-social .brand-logo{width:42px;height:42px}
    .portal-social .brand>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .portal-social .nav-main{display:none}
    .portal-social .mobile-topbar-actions{position:static;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none}
    .portal-social .mobile-notifications,.portal-social .mobile-menu-trigger{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none;cursor:pointer}
    .portal-social .mobile-notifications:hover,.portal-social .mobile-menu-trigger:hover{background:#f1f7fb;border-color:#bfd0dc}
    .portal-social .mobile-notifications svg,.portal-social .mobile-menu-trigger svg,.portal-social .mobile-nav-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
    .portal-social .mobile-menu-trigger{border-color:#d8c27d;background:linear-gradient(145deg,var(--surface),var(--page));color:var(--ink)}
    .portal-social .mobile-menu-trigger:focus-visible,.portal-social .mobile-notifications:focus-visible,.portal-social .mobile-nav-close:focus-visible{outline:3px solid rgba(39,103,151,.35);outline-offset:2px}
    .portal-social .mobile-nav-dialog[open]{position:fixed;inset:0 0 0 auto;display:flex;flex-direction:column;width:min(100%,430px);height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;padding:calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));overflow:auto;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--surface);color:var(--ink);box-shadow:-16px 0 44px rgba(23,49,71,.2)}
    .portal-social .mobile-nav-dialog::backdrop{background:rgba(18,39,58,.48)}
    .portal-social .mobile-nav-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 12px;border-bottom:1px solid #e8edf0}
    .portal-social .mobile-nav-dialog-heading h2{margin:0;color:var(--ink);font-size:22px}
    .portal-social .mobile-nav-close{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer}
    .portal-social .mobile-menu-nav{display:grid;align-content:start;gap:2px;padding:10px 0}
    .portal-social .mobile-menu-nav>a,.portal-social .mobile-menu-nav form>.nav-button{display:flex;align-items:center;width:100%;min-height:48px;padding:11px 10px;border:0;border-bottom:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);text-align:left;text-decoration:none;font-size:16px;font-weight:600}
    .portal-social .mobile-menu-nav>a:hover,.portal-social .mobile-menu-nav form>.nav-button:hover{background:var(--page);color:var(--ink)}
    .portal-social .mobile-menu-nav form{margin:0}
    .portal-social .mobile-menu-nav form>.nav-button{cursor:pointer}
    .portal-social .mobile-menu-nav>a.nav-cta{justify-content:center;margin-top:8px;border:1px solid #1e5789;background:#1d5688;color:#fff}
    .portal-social .page-shell{max-width:100%;margin:16px auto 64px;padding:0 12px}
}

@media(max-width:520px){
    .portal-social .feed-page,.portal-social .feed-page>*{min-width:0;max-width:100%}
    .portal-social .feed-composer-tools{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:8px}
    .portal-social .feed-composer-tools .feed-image-picker{grid-column:1;justify-content:center}
    .portal-social .feed-composer-tools .inline-label{grid-column:1;margin:3px 0 0;white-space:normal}
    .portal-social .feed-composer-tools select{grid-column:1;width:100%;min-width:0;max-width:100%;min-height:46px;padding-right:30px;font-size:15px;text-overflow:clip}
    .portal-social .feed-composer-tools .button{grid-column:1;width:100%;min-height:46px}
    .portal-social .feed-post .post-image{width:100%;max-width:100%;height:auto;object-fit:contain}
}

@media(prefers-reduced-motion:reduce){.portal-social .mobile-nav-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.portal-social .mobile-notifications{position:relative}
.portal-social .mobile-notifications .portal-notification-badge{position:absolute;top:-4px;right:-5px;z-index:1;border:2px solid var(--surface)}
.portal-social .mobile-menu-nav>a.portal-notification-link{justify-content:space-between;gap:12px}
