@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .mobile-menu-button, .mobile-search-button { display: inline-grid; place-items: center; font-size: 1.35rem; }
    .header-search { display: none; }
    .brand { margin-inline: auto; }
    .brand-mark { display: none; }
    .home-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .mobile-inline-search { display: block; margin-bottom: 14px; }
    .footer-inner { flex-direction: column; justify-content: center; padding: 26px 0 110px; }
    .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: rgba(8,14,21,.96); backdrop-filter: blur(16px); }
    .mobile-bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: #aeb9c6; }
    .mobile-bottom-nav span { font-size: 1.2rem; }
    .mobile-bottom-nav small { font-size: .66rem; }
    .mobile-bottom-nav a.is-active { color: var(--primary-light); }
    .mobile-bottom-nav .mobile-create span { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; color: white; background: var(--primary); box-shadow: 0 8px 24px rgba(24,119,242,.35); }
    .mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(84vw, 340px); display: flex; flex-direction: column; gap: 4px; padding: 18px; transform: translateX(-105%); transition: transform .22s ease; background: #0d1620; box-shadow: 30px 0 60px rgba(0,0,0,.4); }
    .mobile-drawer.is-open { transform: translateX(0); }
    .mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
    .mobile-drawer a { padding: 13px 10px; border-radius: 10px; color: #d9e1ea; }
    .mobile-drawer a:hover { background: rgba(255,255,255,.05); }
    .drawer-backdrop { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(0,0,0,.58); }
    .drawer-backdrop.is-open { display: block; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 22px), var(--max-width)); }
    .site-main { padding-top: 20px; }
    .header-inner { min-height: 60px; }
    .brand-word { font-size: 1.25rem; }
    .page-heading h1 { font-size: 2.45rem; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card-featured { grid-column: auto; display: block; }
    .post-card-featured .post-media { min-height: 0; aspect-ratio: 16/9; }
    .post-card-featured .post-content { padding: 17px 18px 10px; }
    .post-card-featured .post-content h2 { font-size: 1.2rem; }
    .signup-callout { align-items: stretch; flex-direction: column; }
    .profile-hero { align-items: flex-start; flex-direction: column; }
    .profile-avatar { width: 88px; height: 88px; }
    .profile-hero .button { width: 100%; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .profile-stats div:nth-child(2) { border-right: 0; }
    .profile-content { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .footer-inner nav { justify-content: center; }
}
@media (max-width:560px){.segmented-control{display:flex;overflow-x:auto;width:100%}.segmented-control a{white-space:nowrap}.modal-actions{flex-direction:column-reverse}.modal-actions .button{width:100%}}

@media (max-width: 980px) {
    .footer-inner-v2 { gap: 18px; }
    .footer-socials { order: 2; }
    .footer-links { order: 3; justify-content: center; }
    .footer-copyright { order: 4; }
}


@media (max-width: 720px) {
  .guest-reaction-hint { padding-inline: 14px; font-size: .76rem; }
  .guest-reaction-hint-detail { padding-inline: 12px; }
}
