/* Owner's 2026-10-16 mobile screenshot: remove accumulated empty vertical
   gutters without shrinking the original text, suppressing jail expiry,
   changing profile tab routes or replacing any portrait. Scopes to the
   overview and to AJAX sections which intentionally retain its full hero. */
@media(max-width:610px){
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-profile-hero{
  gap:2px!important;padding:5px 8px 3px!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-profile-core{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:6px!important;row-gap:2px!important;align-items:center!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-profile-heading{
  grid-column:1/-1!important;margin:0!important;padding:2px 1px!important;
  gap:1px 5px!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-profile-member-number{
  grid-column:1/-1!important;margin:0!important;min-height:0!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-earned-badges{
  grid-column:1/-1!important;margin:0!important;padding:1px 0!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-profile-actions{
  grid-column:1/-1!important;min-width:0!important;
  margin:0!important;padding:2px 1px!important;gap:4px 12px!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]) .ejabat-member-directed-ask-action{
  grid-column:1/-1!important;margin:0!important;justify-content:flex-start!important;
  min-height:0!important;
 }
 /* A short disabled-ask notice uses the same line as the action links.
    Long active Ask links keep their own row so they never overlap. */
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]):has(.ejabat-member-question-closed) .ejabat-profile-actions{
  grid-column:1!important;grid-row:auto!important;
 }
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]):has(.ejabat-member-question-closed) .ejabat-member-directed-ask-action{
  grid-column:2!important;grid-row:auto!important;
  white-space:nowrap!important;
 }
 .classic-member-profile .archive-member-toolbar.ejabat-profile-icons-expanded{
  margin:3px 0 4px!important;padding:2px 4px!important;min-height:41px!important;
 }
 .classic-member-profile .archive-member-toolbar.ejabat-profile-icons-expanded>a{
  height:36px!important;min-height:36px!important;
 }
 .classic-member-profile .ejabat-classic-empty-bio{
  margin:0 0 3px!important;padding:4px 8px!important;
  line-height:1.7!important;
 }
 .classic-member-profile .archive-member-bio{
  margin:1px 0 4px!important;padding:4px 7px!important;
 }
 .classic-member-profile .ejabat-classic-member-card{
  margin:4px 0!important;padding-bottom:8px!important;
 }
 .classic-member-profile .ejabat-profile-weekly-best{
  margin:4px 0!important;padding:5px 9px 7px!important;
 }
}
@media(max-width:355px){
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]):has(.ejabat-member-question-closed) .ejabat-profile-actions,
 .classic-member-profile:is(.is-overview-view,.is-section-view[data-profile-stable-header="full"]):has(.ejabat-member-question-closed) .ejabat-member-directed-ask-action{
  grid-column:1/-1!important;
 }
}
